Hi,
I have a new schema file with the below entries,
[root@host128 schema]# cat local.schema attributeType: ( 2.16.840.1.113730.3.1.241 NAME 'passworduser' DESC 'Custome Testing' SYNTAX 1.3.6.1.4.1.146.6.115.121.1.40 SINGLE-VALUE X-ORIGIN 'user defined' )
objectClass: ( 2.16.840.1.113730.3.2.2 NAME 'custome' SUP top STRUCTURAL MUST passworduser)
Added in slapd.conf and restarted.
trying to add below ldif file.
dn: uid=guest20,ou=People,dc=example,dc=com uid: guest20 cn: guest20 objectClass: account objectClass: posixAccount objectClass: top objectClass: shadowAccount objectClass: passworduser passworduser: {crypt}$1$gFu78wyt$F1VXME32hviAXfrHDuObi/ shadowLastChange: 13473 shadowMax: 99999 shadowWarning: 7 loginShell: /bin/bash uidNumber: 600 gidNumber: 600 homeDirectory: /home2/guest20
dn: cn=guest20,ou=Group,dc=example,dc=com objectClass: posixGroup objectClass: top cn: guest20 userPassword: {crypt}x gidNumber: 600
Throws the below error message.
[root@host128 schema]# ldapadd -f /root/ldif1 SASL/GSSAPI authentication started SASL username: guest2@TEST.EXAMPLE.COM SASL SSF: 56 SASL installing layers adding new entry "uid=guest20,ou=People,dc=example,dc=com" ldap_add: Invalid syntax (21) additional info: objectClass: value #4 invalid per syntax
If anyone can pinpoint what is wrong, I would appreciate.
Regards, Sadique
I changed:
objectClass: custome
In the ldif file, but still getting the same error.
Regards, Sadique
Sadique Puthen wrote:
Hi,
I have a new schema file with the below entries,
[root@host128 schema]# cat local.schema attributeType: ( 2.16.840.1.113730.3.1.241 NAME 'passworduser' DESC 'Custome Testing' SYNTAX 1.3.6.1.4.1.146.6.115.121.1.40 SINGLE-VALUE X-ORIGIN 'user defined' )
objectClass: ( 2.16.840.1.113730.3.2.2 NAME 'custome' SUP top STRUCTURAL MUST passworduser)
Added in slapd.conf and restarted.
trying to add below ldif file.
dn: uid=guest20,ou=People,dc=example,dc=com uid: guest20 cn: guest20 objectClass: account objectClass: posixAccount objectClass: top objectClass: shadowAccount objectClass: passworduser passworduser: {crypt}$1$gFu78wyt$F1VXME32hviAXfrHDuObi/ shadowLastChange: 13473 shadowMax: 99999 shadowWarning: 7 loginShell: /bin/bash uidNumber: 600 gidNumber: 600 homeDirectory: /home2/guest20
dn: cn=guest20,ou=Group,dc=example,dc=com objectClass: posixGroup objectClass: top cn: guest20 userPassword: {crypt}x gidNumber: 600
Throws the below error message.
[root@host128 schema]# ldapadd -f /root/ldif1 SASL/GSSAPI authentication started SASL username: guest2@TEST.EXAMPLE.COM SASL SSF: 56 SASL installing layers adding new entry "uid=guest20,ou=People,dc=example,dc=com" ldap_add: Invalid syntax (21) additional info: objectClass: value #4 invalid per syntax
If anyone can pinpoint what is wrong, I would appreciate.
Regards, Sadique
On Monday 25 December 2006 16:52, Sadique Puthen wrote:
Hi,
I have a new schema file with the below entries,
[root@host128 schema]# cat local.schema attributeType: ( 2.16.840.1.113730.3.1.241 NAME 'passworduser' DESC 'Custome Testing' SYNTAX 1.3.6.1.4.1.146.6.115.121.1.40 SINGLE-VALUE X-ORIGIN 'user defined' )
objectClass: ( 2.16.840.1.113730.3.2.2 NAME 'custome' SUP top STRUCTURAL MUST passworduser)
Do you really need this to be structural? Eg, even if you fix your problem below, this will likely not work (as you already have a structural objectclass, and yours is not derived from that structural objectclass).
You probably want to make this objectclass Auxiliary.
Added in slapd.conf and restarted.
trying to add below ldif file.
dn: uid=guest20,ou=People,dc=example,dc=com uid: guest20 cn: guest20 objectClass: account objectClass: posixAccount objectClass: top objectClass: shadowAccount objectClass: passworduser
You defined passworduser as an attributeType above, not as an objectclass.
Regards, Buchan
openldap-software@openldap.org