From: Graham B. <gb...@po...> - 2001-07-30 16:33:29
|
On Mon, Jul 30, 2001 at 05:19:57PM +0100, Chris Ridd wrote: > "Alwicher, Vincent VAG SITI-GRSE3" <Vin...@is...> wrote: > > Hi, > > > > I was wondering if there is a function that can split the DN into an array > > comtaining the separate components of the DN? > > > > In the competing Perl LDAP module LDAPapi there is a function called > > "explode_dn" available which can do this. > > I cannot find a similar function in mr. Graham Barr's module. > > Thanks in advance! > > > > Kind regards / Met vriendelijke groet, > > Vincent Alwicher > > Technical Consultancy and Solution Development > > SITI-GRSE3 - Global Practice Infrastructure Solutions Europe / Africa > > Shell Information Technology International B.V. > > > > There isn't really an equivalent, but I note that Net::LDAP::Util has a > canonical_dn function that uses a regex to 'explode' DNs. You could copy > that code... Heh, That code was originally written as a sub, but IIRC that code also splits the multi-RDNs too. Graham. |