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
Either you can use Account class or you can use different attribute.
On Mon, Jan 20, 2014 at 9:38 PM, 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
Hi,
I tried to use Account but I get this error when I import a test.ldif
ldapadd: wrong attributeType at line 5, entry "uid=user,ou=Users,dc=example,dc=com"
My ldif looks like
dn: uid=user,ou=Users,dc=example,dc=com changetype: modify add: objectClass objectClass: account add: host host: server1
Do I miss something, its not really clear to me how to solve this
Many Thanks!!!
On 01/22/2014 10:58 AM, Vikas Parashar wrote:
Either you can use Account class or you can use different attribute.
On Mon, Jan 20, 2014 at 9:38 PM, W Forum W <wforumw@gmail.com mailto: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
please use this..
dn: uid=user,ou=Users,dc=example,dc=com changetype: modify add: objectClass objectClass: account
add: host host: server1
On Mon, Jan 27, 2014 at 9:08 PM, W Forum W wforumw@gmail.com wrote:
Hi,
I tried to use Account but I get this error when I import a test.ldif
ldapadd: wrong attributeType at line 5, entry "uid=user,ou=Users, dc=example,dc=com"
My ldif looks like
dn: uid=user,ou=Users,dc=example,dc=com changetype: modify add: objectClass objectClass: account add: host host: server1
Do I miss something, its not really clear to me how to solve this
Many Thanks!!!
On 01/22/2014 10:58 AM, Vikas Parashar wrote:
Either you can use Account class or you can use different attribute.
On Mon, Jan 20, 2014 at 9:38 PM, 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
txs, now i get this violation
ldap_modify: Object class violation (65) additional info: invalid structural object class chain (inetOrgPerson/account)
On 01/27/2014 06:05 PM, Vikas Parashar wrote:
please use this..
dn: uid=user,ou=Users,dc=example,dc=com changetype: modify add: objectClass objectClass: account
add: host host: server1
On Mon, Jan 27, 2014 at 9:08 PM, W Forum W <wforumw@gmail.com mailto:wforumw@gmail.com> wrote:
Hi, I tried to use Account but I get this error when I import a test.ldif ldapadd: wrong attributeType at line 5, entry "uid=user,ou=Users,dc=example,dc=com" My ldif looks like dn: uid=user,ou=Users,dc=example,dc=com changetype: modify add: objectClass objectClass: account add: host host: server1 Do I miss something, its not really clear to me how to solve this Many Thanks!!! On 01/22/2014 10:58 AM, Vikas Parashar wrote:
Either you can use Account class or you can use different attribute. On Mon, Jan 20, 2014 at 9:38 PM, W Forum W <wforumw@gmail.com <mailto: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
Yes, that should be. Because, you are using two structural class from different chain.
Instead of account class, please use extensibleObject.
On Tue, Jan 28, 2014 at 8:31 PM, W Forum W wforumw@gmail.com wrote:
txs, now i get this violation
ldap_modify: Object class violation (65) additional info: invalid structural object class chain (inetOrgPerson/account)
On 01/27/2014 06:05 PM, Vikas Parashar wrote:
please use this..
dn: uid=user,ou=Users,dc=example,dc=com changetype: modify add: objectClass objectClass: account
add: host host: server1
On Mon, Jan 27, 2014 at 9:08 PM, W Forum W wforumw@gmail.com wrote:
Hi,
I tried to use Account but I get this error when I import a test.ldif
ldapadd: wrong attributeType at line 5, entry "uid=user,ou=Users, dc=example,dc=com"
My ldif looks like
dn: uid=user,ou=Users,dc=example,dc=com changetype: modify add: objectClass objectClass: account add: host host: server1
Do I miss something, its not really clear to me how to solve this
Many Thanks!!!
On 01/22/2014 10:58 AM, Vikas Parashar wrote:
Either you can use Account class or you can use different attribute.
On Mon, Jan 20, 2014 at 9:38 PM, 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
Vikas Parashar wrote:
Yes, that should be. Because, you are using two structural class from different chain.
Instead of account class, please use extensibleObject.
Using 'extensibleObject' is really bad practice.
Hint: One can easily define custom structural object classes adding the attributes needed.
Also object classes can be derived from two other object classes.
SUP ( inetOrgPerson $ account )
Ciao, Michael.
Thanks Michael,
But instead of changing existing class, i think, it will be better if we create a custom auxiliary class.
On Wed, Jan 29, 2014 at 2:44 PM, Michael Ströder michael@stroeder.comwrote:
Vikas Parashar wrote:
Yes, that should be. Because, you are using two structural class from different chain.
Instead of account class, please use extensibleObject.
Using 'extensibleObject' is really bad practice.
Hint: One can easily define custom structural object classes adding the attributes needed.
Also object classes can be derived from two other object classes.
SUP ( inetOrgPerson $ account )
Ciao, Michael.
Finally I found some time again. Its not really clear to me how to do this Any help would be nice
Thanks in advance
On 01/29/2014 10:41 AM, Vikas Parashar wrote:
Thanks Michael,
But instead of changing existing class, i think, it will be better if we create a custom auxiliary class.
On Wed, Jan 29, 2014 at 2:44 PM, Michael Ströder <michael@stroeder.com mailto:michael@stroeder.com> wrote:
Vikas Parashar wrote: > Yes, that should be. Because, you are using two structural class from > different chain. > > Instead of account class, please use extensibleObject. Using 'extensibleObject' is really bad practice. Hint: One can easily define custom structural object classes adding the attributes needed. Also object classes can be derived from two other object classes. SUP ( inetOrgPerson $ account ) Ciao, Michael.
Hi I tried to create a custom auxiliary class but I get this error
attributetype: Inconsistent duplicate attributeType: "host"
If I change the attributeType: "host" to attributeType: "hosts" it works. But I need the 'host' attribute.not 'hosts'
How can I solve this?
My schema looks like
attributetype ( 1.3.6.1.4.1.9554.1 NAME 'host' DESC 'host computer' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
objectclass ( 1.3.6.1.4.1.9554.0 NAME 'teststuff' SUP top AUXILIARY DESC 'Abstraction of an account with extra attributes' MAY ( host ) )
Thanks
On 01/29/2014 10:41 AM, Vikas Parashar wrote:
Thanks Michael,
But instead of changing existing class, i think, it will be better if we create a custom auxiliary class.
On Wed, Jan 29, 2014 at 2:44 PM, Michael Ströder <michael@stroeder.com mailto:michael@stroeder.com> wrote:
Vikas Parashar wrote: > Yes, that should be. Because, you are using two structural class from > different chain. > > Instead of account class, please use extensibleObject. Using 'extensibleObject' is really bad practice. Hint: One can easily define custom structural object classes adding the attributes needed. Also object classes can be derived from two other object classes. SUP ( inetOrgPerson $ account ) Ciao, Michael.
openldap-technical@openldap.org