[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-ldap-dev
Subject:    Re: Net::LDAP and rdn
From:       Peter Marschall <peter.marschall () mayn ! de>
Date:       2002-07-02 20:27:48
[Download RAW message or body]

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=7495300&list=3482

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 = $retailer->dn;
> 	    $newrdn =~ s/([^,]+),.*/$1/;
> 	    $newrdn = "$newrdn-" . time;
> 	    $mesg = $ldap->moddn( $retailer->dn,
> 				  newrdn => $newrdn,
> 				  newsuperior => $LDAP_DELETED,
> 				  );
>
> First, my regular expression is certainly a bit too much simple.
> ( $newrdn =~ 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

-- 
Peter Marschall     |   eMail: peter.marschall@mayn.de
Scheffelstraße 15   |          peter.marschall@is-energy.de
97072 Würzburg      |   Tel:   0931/14721
PGP:  D7 FF 20 FE E6 6B 31 74  D1 10 88 E0 3C FE 28 35


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic