[Ruby-activeldap-discuss] using activeldap with variable prefix
kou at cozmixng.org
Thu Feb 14 06:45:46 EST 2008
In <E986F386-433F-42E1-BCDE-7D443F4CD769 at post.pl>
"[Ruby-activeldap-discuss] using activeldap with variable prefix" on Thu, 14 Feb 2008 12:21:50 +0100,
Grzegorz_Marszałek <graf0 at post.pl> wrote:
> My question is: how can I manage such a structure using activeldap?
> I've created classes for each type of object I need (ie: dhcp network,
> or user), but now I need to add user to particular customer - not to
> general ou=Users, like almost everybody else are doing :) That's mean
> that I need to change prefix each time I do some operations on ldap
> (find, or save). I'm a little bit lost here, and I'd really appreciate
> some help.
How about this?
customer = Customer.new("cn=CustomerName,ou=YourCustomer")
More information about the Ruby-activeldap-discuss