[Date Prev][Date Next] [Chronological] [Thread] [Top]

rewrite userPassword-value with back-meta



Hi,
I'm trying to patch the sources in order to rewrite the userPasswords-value
with the back_meta.

Does anyone have a little patch for search.c, I'm really annoyed because my
changes
don't work like I want.

THX, Jan


-----Ursprüngliche Nachricht-----
Von: alexela_1999 [mailto:alexela_1999@sina.com]
Gesendet: Dienstag, 27. Mai 2003 11:28
An: openldap-software@OpenLDAP.org
Betreff: help! why referral is hidden?


hello ,everybody,

I'm puzzled when I use JNDI with referral, i set "java.naming.referral" to
"ignore", but the return result doesn't including the "ref" attribute which
belong to objectclass "referral". here is my referral ldif
==============================================
dn: o=subtree,dc=example,dc=com
ref: ldap://computer:389/o=subtree,dc=example,dc=com
objectclass: top
objectClass: extensibleObject
objectclass: referral
o: subtree
cn: aaaabbbb
==============================================


I use codes provide by JNDI tutorial, which is like below
==============================================
     DirContext ctx = new InitialDirContext(env);

     // See its attributes
     Attributes attrs = ctx.getAttributes("o=subtree,dc=example,dc=com");

     System.out.println(attrs);

     // Close the context when we're done
     ctx.close();
==============================================


but result is
============================================
{objectclass=objectClass: top, extensibleObject, referral, o=o: Êб¾¼¶,
cn=cn: aaaabbbb}
============================================

I got all attributes except for "ref", who can tell me why and how could I
do?! anybody encountered the same problem with JNDI?!

Thanks a lot ,everybody!!!

______________________________________

===================================================================