Hi, Thanks for the quick response
I am using Debian wheezy.
I installed the ldapns.schema from the deb package but I still when I try to add a user (as a ldif file with a host attribute defined) a get the error
ldap_add: Object class violation (65)If I remove the host attribute (from ldif file) the user is added successfully.
additional info: attribute 'host' not allowed
How can I get the host attribute working?
Many thanks
On 01/20/2014 05:43 PM, Joshua Schaeffer wrote:
There is some information from the Debian wiki (https://wiki.debian.org/LDAP/PAM) on adding a host attribute to a user, but I'm sure it applies to other distro's as well:
To add the "host" attribute to a user, he should have an objectClass that supports this. The "account" objectClass has the attribute, but is not compatible with the "inetOrgPerson" objectClass. To work around this, you can use the "ldapns" schema, supplied with the libpam-ldap package. This schema provides the "hostObject" objectClass, which has the proper "host" attribute.
On Mon, Jan 20, 2014 at 9:08 AM, W Forum W <wforumw@gmail.com> wrote:
Hi
I try to add a user but the host attribute is not accept (everything else is fine)
ldapadd -x -W -D "cn=admin,dc=example,dc=com" -f user.ldif
Enter LDAP Password:
adding new entry "uid=user,ou=Users,dc=example,dc=comt"
ldap_add: Object class violation (65)
additional info: attribute 'host' not allowed
how can i add a host attribute
i have following schema installed
core.schema
cosine.schema
nis.schema
inetorgperson.schema
samba.schema
thanks in advance