URGENT: ldap_add(): Add: Object class violation error 65
I have same problem with php4 and ldap when execute the command ldap_add - Error number 65: Object class violation" . This error happens when I include the
dialupAccess attribute of radiusprofile objectclass.
and. The shema included is:
* RADIUS-LDAPv3.schema (radiusprofile and dialupAccess attribute)
* openLdap 1.0.2-4
* Freeradius 1.0.2-4
PHP code ldap-add:
$info["objectClass"]="top";
$info["objectClass"]="radiusprofile";
$info["objectClass"]="person";
$info["objectClass"]="inetOrgPerson";
$info["uid"]="radius";
$info["mail"]="prueba@cnti.ve";
$info["cn"]="CNTI";
$info["sn"]="Reacciun";
$info[dialupAccess]="yes";
$info["userPassword"]= "{crypt}254521";
ldap_add(cn=admin,dc=cnti,dc=gob,dc=ve, uid=$login,
ou=People,dc=cnti,dc=gob,dc=ve,$info);
The error is:
Object class violation (65) additional info: attribute 'dialupAccess'
not allowed.
The dialupAccess attribute is defined in the shema (section may). The shema have defined as "MUST" cn attribute.
Somebody can help me with this problem?... Thanks.
|