Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Net::LDAP::Class create entry with custom dn location

11 views
Skip to first unread message

Vladimir Levijev

unread,
Oct 12, 2012, 4:23:40 PM10/12/12
to perl...@perl.org
Hi,

When using NLC create() method, can I specify the dn?

As I understand it gets created in base_dn which is specified in my
custom package. But I need to specify a different dn at creation time.
My users are at

cn=foo,base_dn
cn=bar,base_dn

based on a specific user detail.

Cheers,

VL

Peter Karman

unread,
Oct 12, 2012, 5:23:42 PM10/12/12
to perl...@perl.org
Assuming you are using NLC::User::AD, then no.

However, it looks to me like you could override setup_for_write() in
your User subclass and specify whatever $cn you wanted, which would then
be prepended to the $base_dn in action_for_create().

--
Peter Karman . http://peknet.com/ . pe...@peknet.com
0 new messages