Code Comments
Programming Forum and web based access to our favorite programming groups.Currently, I have user names defined as CN. Can the CN be changed to accomodated user name changes through Perl Net::LDAP? Error msg "DSID-030F0A34, problem 6004 (CANT_ON_RDN)" is generated when I try to modify the CN. Is the only solution is to add a new record under the new CN and remove the old record? Will
Post Follow-up to this messageOn 31/5/05 6:53, wy <wilyeo@gmail.com> wrote: > Currently, I have user names defined as CN. Can the CN be changed to > accomodated user name changes through Perl Net::LDAP? Yes. > Error msg "DSID-030F0A34, problem 6004 (CANT_ON_RDN)" is generated > when I try to modify the CN. Is the only solution is to add a new > record under the new CN and remove the old record? No. It would seem that your entries have an RDN of cn=<whatever>. In other words, what you want to do is to rename your entries. The Net::LDAP method to do that is called "moddn", and it is documented. <http://search.cpan.org/~gbarr/perl-...ib/Net/LDAP.pod> Cheers, Chris
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.