On 10/12/12 3:23 PM, Vladimir Levijev wrote:
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.

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

Reply via email to