我正在尝试将组添加到LDAP服务器
我使用以下代码添加组:
$ldap = new LDAP();
$connection = $ldap->connect($ldap->ldapserver,$ldap->ldapport);
$ldap->bind($connection,'cn=zentyal,dc=test,dc=org','k8ddfffdIsdefdfsdfsfi9');
$groupAtt['cn'] = $group_name;
$groupAtt['description'] = $group_description;
$groupAtt['objectClass'][0] = "posixGroup";
$groupAtt['objectClass'][1] = "zentyalGroup";
$groupAtt['gidNumber'] = "3000";
$addGroup = "cn=".$group_name.",ou=Groups,dc=test,dc=org";
$ldapcreation = $ldap->addRecord($connection,$addGroup,$groupAtt);
The code in the function addRecord is
function addRecord($connection, $adddn, $record){
$addProcess = ldap_add($connection, $adddn, $record);
if($addProcess){
return true;
} else {
return false;
}
}
该组被添加但是有一段时间后该组将从LDAP中删除。
这种行为可能会发生什么?