From: Chris R. <chr...@me...> - 2001-07-30 16:20:14
|
"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... Cheers, Chris |