I'm trying to make a tool which can...
Articles and Tips: qna
01 Oct 2001
Q.
I'm trying to make a tool which can move users in bulk, but it seems that ldap_rename_s doesn't work.
A.
If I rename a user it works, but if I try to move a user to another container it returns 0x80. Here is a snippet of my code:
// CUT DoBind on connection 0x8337698 DoBind: name = 'cn=admin,o=c-note', client version = 3, method = 0x80 send_ldap_result 0:"":"" to connection 0x8337698 DoModifyDN on connection 0x8337698 DoModifyDN: dn (cn=test,ou=test,o=c-note) newrdn (cn=test) deleteoldrdn (0) Cannot resolve NDS name 'CN=test.OU=test.O=c-note' in ResolveAndAuthNDSName, err = -626 dn_parent: Empty/NULL dn Cannot parse NDS name 'CN=test.OU=test.O=c-note' in ResolveAndAuthNDSName, err = 64 ResolveNDSNameWithCache failed, err = -626 send_ldap_result 80:"":"NDS error: all referrals failed (-626)" to connection 0x8337698 DoUnbind on connection 0x8337698 // CUT
Is it my programming, or is there a problem with ldap_rename_s and NDS. I'm running 85.12 on a Linux box.
A. Your code looks good. You are using the ldap_rename_s correctly. Recheck your LDAP NDK setup and see if the problem goes away. I have tried it in my lab with no problems.* Originally published in Novell AppNotes
Disclaimer
The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.