For Programmers: Free Programming Magazines  


Home > Archive > LDAP > May 2005 > Can Common Name be changed?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can Common Name be changed?
Wy

2005-05-31, 4:07 pm

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
Chris Ridd

2005-05-31, 4:07 pm

On 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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com