ldap_add(): Add: Object class violation on gidNumber or uidNumber #723
-
Hi, I try to create a new account on my OpenLDAP with gidNumber or uidNumber and always got "ldap_add(): Add: Object class violation" error. $basedn = Config::get('ldap.connections.default.base_dn');
$ou = OrganizationalUnit::findOrFail('ou=People,' . $basedn);
$userldap = new UserLdap([
// 'gidNumber' => 10000, // error
'cn' => $this->record->full_name,
'sn' => $this->record->full_name,
'userPassword' => $sixrandomNumber,
'mail' => $this->record->email,
]);
$userldap->inside($ou)->save();
dn: cn=Admin Workflow,ou=People,dc=ametis,dc=intranet How the correct syntax parameter or any basic concept I didn't know? Laravel v10.48.12 Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I can fix it by completing all mandatory fields of posixAccount objectClass: uid, homeDirectory, uidNumber, gidNumber. |
Beta Was this translation helpful? Give feedback.
I can fix it by completing all mandatory fields of posixAccount objectClass: uid, homeDirectory, uidNumber, gidNumber.