Fix account creation
This commit is contained in:
parent
531864ef8d
commit
744c3db27c
@ -271,7 +271,7 @@ sub cmd_account_create($@)
|
|||||||
|
|
||||||
if (! $ou)
|
if (! $ou)
|
||||||
{
|
{
|
||||||
my $mesg = $ldap->add( "$oudn",
|
my $mesg = $ldap->add( "$oudn,dc=acu,dc=epita,dc=fr",
|
||||||
attrs => [
|
attrs => [
|
||||||
objectclass => [ "top", "organizationalUnit" ],
|
objectclass => [ "top", "organizationalUnit" ],
|
||||||
ou => "$group",
|
ou => "$group",
|
||||||
@ -284,7 +284,7 @@ sub cmd_account_create($@)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my $mesg = $ldap->add( "uid=$login,$oudn",
|
my $mesg = $ldap->add( "uid=$login,$oudn,dc=acu,dc=epita,dc=fr",
|
||||||
attrs => [
|
attrs => [
|
||||||
objectclass => [ "top", "epitaAccount" ],
|
objectclass => [ "top", "epitaAccount" ],
|
||||||
uidNumber => shift,
|
uidNumber => shift,
|
||||||
|
Reference in New Issue
Block a user