moddn/modrdn examples

2005-07-06 Thread Young, Darren
I need to have a Net::LDAP script move users from one OU to another, can this be done with a dn() call or do I need to use moddn/modrdn? Anyone have an example of dn() or a moddn/modrdn call? - | Darren Young | http://www.ch

ldap_explode_dn

2005-07-06 Thread Young, Darren
Anyone have an example of using Net::LDAP::Util->ldap_explode_dn() ? I'm lost on the part "Explodes the given DN into an array of hashes and returns a reference to this array"... If (should) I say: my $dn = "uid=dyoung2, ou=GSB, dc=uchicago, dc=edu"; my @dnvals = ldap_explode_dn($dn); Any

Re: moddn/modrdn examples

2005-07-06 Thread Graham Barr
On Jul 6, 2005, at 2:09 PM, Young, Darren wrote: I need to have a Net::LDAP script move users from one OU to another, can this be done with a dn() call or do I need to use moddn/modrdn? You need to use $ldap->moddn Anyone have an example of dn() or a moddn/modrdn call? $mesg = $ldap->mo

Re: ldap_explode_dn

2005-07-06 Thread Graham Barr
On Jul 6, 2005, at 4:52 PM, Young, Darren wrote: Anyone have an example of using Net::LDAP::Util->ldap_explode_dn() ? I'm lost on the part "Explodes the given DN into an array of hashes and returns a reference to this array"... If (should) I say: my $dn = "uid=dyoung2, ou=GSB, dc=uchica

RE: moddn/modrdn examples

2005-07-06 Thread Young, Darren
Ugh, old LDAP server... Second way worked but I had to give it the newrdn as well: 07-06-2005 19:06:09: _moveWWWLdapAccountOU: FAILED to move user -> dyoung2 07-06-2005 19:06:09: _moveWWWLdapAccountOU: LDAP error code is 89 07-06-2005 19:06:09: _moveWWWLdapAccountOU: LDAP error text is: No NewRD