php - ldap_add error too vague -
i using php-ldap manage posix accounts on linux machine. able search database in php. , able add users via command line "ldapadd". however, when try add user via php ldap_add, "object class violation" error (errno 65).
i have tried can think of, error has not changed. have looked see if there alternative php-ldap, have not found one.
the problem when error in general ldap guide, says "this error returned entry added or entry modified violates object class schema rules. additional information returned error detailing violation." , lists 8 possible causes.
i need more in depth error, cannot find it. ldap_error no help. ideas how dig deaper here?
i figured out how dig deeper. using ubuntu dumping logs /var/log/{debug,syslog}
in order more info had increase log level 424 in /etc/ldap/slapd.d/cn=config.ldif
then able see error in logs told me doing wrong... using dc attribute inetorgperson objectclass.
thanks.
Comments
Post a Comment