davis has asked for the wisdom of the Perl Monks concerning the following question:
I can do this manually simply enough with a quick split and a map, but I suspect that the problem is common enough and possibly more complicated than I first thought to have been solved by a module. I cannot find such a module; I've looked at LDAP::uri and Net::LDAP, but I can't find anything that does what I think I want
I have a plain text string, containing an LDAP dn. It looks similar to this
and I want to parse that such that I can easily answer the questions "Is user $foo in group $bar?", "Show me all the members of group $baz". Is there a module which does it for me?cn=John Bull,ou=admins,ou=technical,ou=Staff,dc=example,dc=com
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Splitting an LDAP DN into its constiuent parts (groups)
by Anonymous Monk on Jun 30, 2011 at 11:12 UTC | |
by davis (Vicar) on Jun 30, 2011 at 11:15 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |