From: Peter M. <pet...@ma...> - 2002-07-02 20:28:11
|
Hi, I checked actual release and the beta for the upcoming 0.26 * 0.251 does not contain a function for spltting DNs * 0.25_03 contains ldap_explode_dn() In a mail from today or yesterday, Graham wrote that he wanted to bring out 0.26 very soon. If you can't wait: http://www.geocrawler.com/mail/msg.php3?msg_id=3D7495300&list=3D3482 Yours Peter On Tuesday 02 July 2002 18:23, you wrote: > Hi, > > When I delete an entry in LDAP, rather than completely deleting the > entry, I move the entry to a "deleted" tree. > > I use the following code: > my $newrdn =3D $retailer->dn; > =09 $newrdn =3D~ s/([^,]+),.*/$1/; > =09 $newrdn =3D "$newrdn-" . time; > =09 $mesg =3D $ldap->moddn( $retailer->dn, > =09=09=09=09 newrdn =3D> $newrdn, > =09=09=09=09 newsuperior =3D> $LDAP_DELETED, > =09=09=09=09 ); > > First, my regular expression is certainly a bit too much simple. > ( $newrdn =3D~ s/([^,]+),.*/$1/; ) > Can someone give a reasonable regexp to retrieve the rdn of a dn ? > > Perhaps, an "rdn" function should be available in NET::LDAP to > retrieve the rdn like we retrieve the dn. > > Regards, > Jerome. > > > > _______________________________________________________________________= ____ >___ ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf --=20 Peter Marschall | eMail: pet...@ma... Scheffelstra=DFe 15 | pet...@is... 97072 W=FCrzburg | Tel: 0931/14721 PGP: D7 FF 20 FE E6 6B 31 74 D1 10 88 E0 3C FE 28 35 |