hi, i had recently applied for OIDs with IANA. and they have sent me a Personal Enterprise Number(PEN) (consider it as "pqrs"). The prefix they have sent is 1.3.6.1.4.1
"for attributes i have used-----"1.3.6.1.4.1.pqrs.1 "for objectclasses i have used----"1.3.6.1.4.1.pqrs.2
Using that i have created OIDs for my purpose. my schema file looks like below.
attributetype( 1.3.6.1.4.1.pqrs.1.12 NAME 'outofofficeon' DESC 'Specifies if the user is out of office or not' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.13 NAME 'timezone' DESC 'Time zone of the entry' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.14 NAME 'shippingaddress' DESC 'Shipping address of the entry' SYNTAX 'cis' MULTI-VALUE )
objectclass( 1.3.6.1.4.1.pqrs.2.1 NAME 'ssausergroup' DESC 'SSA Usergroup' SUP groupofuniquenames STRUCTURAL MAY( ssarole $ ssaugtype ) )
objectclass( 1.3.6.1.4.1.pqrs.2.2 NAME 'ssabase' DESC 'SSA Base' SUP top STRUCTURAL MUST( uid $ cn $ sn )
.............................
.........................
...........................
now i am trying to run an LDIF file which contains a sample data like
dn: uid=admin,ou=ssausers,dc=ssainternal,dc=net changetype: add objectClass: top objectClass: ssauser objectClass: ssantuser uid: admin cn: admin userpassword: admin ssarole: administrator ssarole: superadministrator sn: admin preferredlanguage: en_US ntuserdomainid: ssainternal
using the ldapadd command....all the data gets added except for the above one. It gives me an error saying
ldap_add: Invalid syntax(21)
additional info: objectClass: value #1 invalid per syntax.
Does it mean that the objectclasses i have mentioned in the above ldif entry are causing the problem?? i.e "ssauser", "ssantuser"?????
Is it that the definitions of these objectclasses in schema is not proper?? Or has it got anything to do with the way i have arranged the OIDs?
kindly help me out with this..........
waiting fo rur reply
shilpa
On Thursday 15 March 2007, shilpa muramkar wrote:
attributetype( 1.3.6.1.4.1.pqrs.1.12 NAME 'outofofficeon' DESC 'Specifies if the user is out of office or not' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.13 NAME 'timezone' DESC 'Time zone of the entry' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.14 NAME 'shippingaddress' DESC 'Shipping address of the entry' SYNTAX 'cis' MULTI-VALUE )
objectclass( 1.3.6.1.4.1.pqrs.2.1 NAME 'ssausergroup' DESC 'SSA Usergroup' SUP groupofuniquenames STRUCTURAL MAY( ssarole $ ssaugtype ) )
objectclass( 1.3.6.1.4.1.pqrs.2.2 NAME 'ssabase' DESC 'SSA Base' SUP top STRUCTURAL MUST( uid $ cn $ sn )
now i am trying to run an LDIF file which contains a sample data like
dn: uid=admin,ou=ssausers,dc=ssainternal,dc=net changetype: add objectClass: top objectClass: ssauser objectClass: ssantuser uid: admin cn: admin userpassword: admin ssarole: administrator ssarole: superadministrator sn: admin preferredlanguage: en_US ntuserdomainid: ssainternal
It strikes me that you seem to be duplicating some information that is already defined in the samba schemas ...
using the ldapadd command....all the data gets added except for the above one. It gives me an error saying
ldap_add: Invalid syntax(21)
additional info: objectClass: value #1 invalid per syntax.
Does it mean that the objectclasses i have mentioned in the above ldif entry are causing the problem?? i.e "ssauser", "ssantuser"?????
Where is the schema definition for "ssauser" ? It is not in the extract above, and this is the objectclass being complained about.
Is it that the definitions of these objectclasses in schema is not proper??
We can't tell, since it may be that you have no definition for this objectclass, and if you do, we can't tell you anything about it (since it is missing in this mail).
Or has it got anything to do with the way i have arranged the OIDs?
Most likely not.
kindly help me out with this..........
Only if you provide sufficient information to be able to help ...
BTW, you say you created the schema file, but did you include it in your slapd.conf ? Did you restart slapd after that ?
Regards, Buchan
hey thr....the extract i have given u is just a part of my schema......i do have all the objectclasses in the schema file...and i have included in the slapd.conf ..........and i have also restarted the server...
all my data is ldifs is getting added except for this one
dn: uid=admin,ou=ssausers,dc=ssainternal,dc=net changetype: add objectClass: top objectClass: ssauser objectClass: ssantuser uid: admin cn: admin userpassword: admin ssarole: administrator ssarole: superadministrator sn: admin preferredlanguage: en_US ntuserdomainid: ssainternal
thats why i thought must be there is some problem with the object classes mentioned in this entry......i do have those in my schema......
objectclass( 1.3.6.1.4.1.28186.2.3 NAME 'ssauser' DESC 'SSA User' SUP ssabase STRUCTURAL MAY( telephonenumber $ title $ mobile $ displayname $ facsimiletelephonenumber $ preferredlanguage $ postaladdress $ c ) )
objectclass( 1.3.6.1.4.1.28186.2.6 NAME 'ssantuser' DESC 'SSA NT User Profile' SUP top STRUCTURAL MUST ntuserdomainid )
another important thing.,....is there any place like a config file or properties file where we put our OIDs which we are using??? coz there has to be some place from where the server cross checks or does something to verify the OIDs...
Waiting for your reply!!! Shilpa
On 3/15/07, Buchan Milne bgmilne@staff.telkomsa.net wrote:
On Thursday 15 March 2007, shilpa muramkar wrote:
attributetype( 1.3.6.1.4.1.pqrs.1.12 NAME 'outofofficeon' DESC 'Specifies if the user is out of office or not' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.13 NAME 'timezone' DESC 'Time zone of the entry' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.14 NAME 'shippingaddress' DESC 'Shipping address of the entry' SYNTAX 'cis' MULTI-VALUE )
objectclass( 1.3.6.1.4.1.pqrs.2.1 NAME 'ssausergroup' DESC 'SSA Usergroup' SUP groupofuniquenames STRUCTURAL MAY( ssarole $ ssaugtype ) )
objectclass( 1.3.6.1.4.1.pqrs.2.2 NAME 'ssabase' DESC 'SSA Base' SUP top STRUCTURAL MUST( uid $ cn $ sn )
now i am trying to run an LDIF file which contains a sample data like
dn: uid=admin,ou=ssausers,dc=ssainternal,dc=net changetype: add objectClass: top objectClass: ssauser objectClass: ssantuser uid: admin cn: admin userpassword: admin ssarole: administrator ssarole: superadministrator sn: admin preferredlanguage: en_US ntuserdomainid: ssainternal
It strikes me that you seem to be duplicating some information that is already defined in the samba schemas ...
using the ldapadd command....all the data gets added except for the
above
one. It gives me an error saying
ldap_add: Invalid syntax(21)
additional info: objectClass: value #1 invalid per
syntax.
Does it mean that the objectclasses i have mentioned in the above ldif entry are causing the problem?? i.e "ssauser", "ssantuser"?????
Where is the schema definition for "ssauser" ? It is not in the extract above, and this is the objectclass being complained about.
Is it that the definitions of these objectclasses in schema is not
proper??
We can't tell, since it may be that you have no definition for this objectclass, and if you do, we can't tell you anything about it (since it is missing in this mail).
Or has it got anything to do with the way i have arranged the OIDs?
Most likely not.
kindly help me out with this..........
Only if you provide sufficient information to be able to help ...
BTW, you say you created the schema file, but did you include it in your slapd.conf ? Did you restart slapd after that ?
Regards, Buchan
-- Buchan Milne ISP Systems Specialist - Monitoring/Authentication Team Leader B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
"shilpa muramkar" ratnashilpa@gmail.com writes:
hey thr....the extract i have given u is just a part of my schema......i do have all the objectclasses in the schema file...and i have included in the slapd.conf ..........and i have also restarted the server...
all my data is ldifs is getting added except for this one
dn: uid=admin,ou=ssausers,dc=ssainternal,dc=net changetype: add objectClass: top objectClass: ssauser objectClass: ssantuser uid: admin cn: admin userpassword: admin ssarole: administrator ssarole: superadministrator sn: admin preferredlanguage: en_US ntuserdomainid: ssainternal
thats why i thought must be there is some problem with the object classes mentioned in this entry......i do have those in my schema......
objectclass( 1.3.6.1.4.1.28186.2.3 NAME 'ssauser' DESC 'SSA User' SUP ssabase STRUCTURAL MAY( telephonenumber $ title $ mobile $ displayname $ facsimiletelephonenumber $ preferredlanguage $ postaladdress $ c ) )
objectclass( 1.3.6.1.4.1.28186.2.6 NAME 'ssantuser' DESC 'SSA NT User Profile' SUP top STRUCTURAL MUST ntuserdomainid )
As both of your object classes ssauser and ssantuser are defined as structural and do not belong to the same objectclass chain, an entry cannot belong to both object classes.
-Dieter
well...nothing seems to be working out :(
as per ur reply..in the below snippet
objectclass( 1.3.6.1.4.1.28186.2.3 NAME 'ssauser' DESC 'SSA User' SUP *ssabase* STRUCTURAL MAY( telephonenumber $ title $ mobile $ displayname $ facsimiletelephonenumber $ preferredlanguage $ postaladdress $ c ) )
objectclass( 1.3.6.1.4.1.28186.2.6 NAME 'ssantuser' DESC 'SSA NT User Profile' SUP *top *STRUCTURAL MUST ntuserdomainid ) ..*ssabase* objectclass comes from *top*.....so v can say that both the object classes come from same objectclass chain.
*As i have asked previously.....is there any config or property file where we need to configure our OIDs..coz there should be some place from where the server picks them up for checking*.
and to summarise......
1. I have created my own schema file...by giving them proper OIDs(which i received from IANA). 2. I included my schema file in slapd.conf along with other schema file. 3. I restarted the server. 4.I ran my ldif file.
but still i get the error "object class #1 invalid syntax"................. let me know if im missing something, eagerly waiting for the reply shilpa
On 3/17/07, Dieter Kluenter dieter@dkluenter.de wrote:
"shilpa muramkar" ratnashilpa@gmail.com writes:
hey thr....the extract i have given u is just a part of my schema......i
do
have all the objectclasses in the schema file...and i have included in
the
slapd.conf ..........and i have also restarted the server...
all my data is ldifs is getting added except for this one
dn: uid=admin,ou=ssausers,dc=ssainternal,dc=net changetype: add objectClass: top objectClass: ssauser objectClass: ssantuser uid: admin cn: admin userpassword: admin ssarole: administrator ssarole: superadministrator sn: admin preferredlanguage: en_US ntuserdomainid: ssainternal
thats why i thought must be there is some problem with the object
classes
mentioned in this entry......i do have those in my schema......
objectclass( 1.3.6.1.4.1.28186.2.3 NAME 'ssauser' DESC 'SSA User' SUP ssabase STRUCTURAL MAY( telephonenumber $ title $ mobile $ displayname $ facsimiletelephonenumber $ preferredlanguage $ postaladdress $ c ) )
objectclass( 1.3.6.1.4.1.28186.2.6 NAME 'ssantuser' DESC 'SSA NT User Profile' SUP top STRUCTURAL MUST ntuserdomainid )
As both of your object classes ssauser and ssantuser are defined as structural and do not belong to the same objectclass chain, an entry cannot belong to both object classes.
-Dieter
-- Dieter Klünter | Systemberatung http://www.dkluenter.de GPG Key ID:8EF7B6C6
You are still using two *structural* objectclass with different inheritance chains in the same entry, which will not work.
Fix that before you waste your time on anything else.
Regards, Buchan
On Thursday 22 March 2007, shilpa muramkar wrote:
well...nothing seems to be working out :(
as per ur reply..in the below snippet
objectclass( 1.3.6.1.4.1.28186.2.3 NAME 'ssauser' DESC 'SSA User' SUP *ssabase* STRUCTURAL MAY( telephonenumber $ title $ mobile $ displayname $ facsimiletelephonenumber $ preferredlanguage $ postaladdress $ c ) )
objectclass( 1.3.6.1.4.1.28186.2.6 NAME 'ssantuser' DESC 'SSA NT User Profile' SUP *top *STRUCTURAL MUST ntuserdomainid ) ..*ssabase* objectclass comes from *top*.....so v can say that both the object classes come from same objectclass chain.
No you can't. ssantuser inherits from top, but ssauser inherits from ssabase, so you have:
top-->ssabase->ssauser |->ssantuser
You either need:
top-->ssabase-->ssauser-->ssantuser
or, one of these must be auxiliary.
Regards, Buchan
On 3/15/07, shilpa muramkar ratnashilpa@gmail.com wrote:
hi, i had recently applied for OIDs with IANA. and they have sent me a Personal Enterprise Number(PEN) (consider it as "pqrs"). The prefix they have sent is 1.3.6.1.4.1
"for attributes i have used-----"1.3.6.1.4.1.pqrs.1 "for objectclasses i have used----"1.3.6.1.4.1.pqrs.2
Using that i have created OIDs for my purpose. my schema file looks like below.
attributetype( 1.3.6.1.4.1.pqrs.1.12 NAME 'outofofficeon' DESC 'Specifies if the user is out of office or not' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.13 NAME 'timezone' DESC 'Time zone of the entry' SYNTAX 'cis' SINGLE-VALUE )
attributetype( 1.3.6.1.4.1.pqrs.1.14 NAME 'shippingaddress' DESC 'Shipping address of the entry' SYNTAX 'cis' MULTI-VALUE )
objectclass( 1.3.6.1.4.1.pqrs.2.1 NAME 'ssausergroup' DESC 'SSA Usergroup' SUP groupofuniquenames STRUCTURAL MAY( ssarole $ ssaugtype ) )
objectclass( 1.3.6.1.4.1.pqrs.2.2 NAME 'ssabase' DESC 'SSA Base' SUP top STRUCTURAL MUST( uid $ cn $ sn )
.............................
.........................
...........................
now i am trying to run an LDIF file which contains a sample data like
dn: uid=admin,ou=ssausers,dc=ssainternal,dc=net changetype: add objectClass: top objectClass: ssauser objectClass: ssantuser uid: admin cn: admin userpassword: admin ssarole: administrator ssarole: superadministrator sn: admin preferredlanguage: en_US ntuserdomainid: ssainternal
using the ldapadd command....all the data gets added except for the above one. It gives me an error saying
ldap_add: Invalid syntax(21)
additional info: objectClass: value #1 invalid per syntax.
Check out: http://www.openldap.org/faq/data/cache/648.html
It looks like something is wrong with the second objectclass: in your ldif. (I'm pretty sure those count from 0) You didn't give your schema for ssauser, so it might also be a problem with your schema file, but check the easy stuff from the faq first.
openldap-software@openldap.org