[Date Prev][Date Next] [Chronological] [Thread] [Top]

Adding Objectclass account gives object class violation

I'm using samba-openldap on Ubuntu 9.10 Server. I have created following user:rick using smbldap-tools which use default samba.schema.eg shown below.
Now I also want to use "Host based authentication" using pam_filter where I need to mention host entry which has to be present in that user record.
pam_filter |(host=cms2)(host=cms3)
However "host" attribute appears only if I add "objectclass:account". If I go ahead to add that here for user:rick it gives me objectclass violation. What could be the way out of it? Any inputs would be highly appreciated

cn: rick
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
objectClass: sambaSamAccount
sn: rick
givenName: rick
uid: rick
uidNumber: 30003
gidNumber: 513
homeDirectory: /home/rick
loginShell: /bin/bash
gecos: System User
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
sambaPwdMustChange: 2147483647
displayName: rick
sambaAcctFlags: [UX]
sambaSID: S-1-5-21-1045966857-3925637060-4258372004-61006
sambaPrimaryGroupSID: S-1-5-21-1045966857-3925637060-4258372004-513
sambaLogonScript: logon.bat
sambaProfilePath: \\x6\profiles\rick
sambaHomePath: \\x6\rick
sambaHomeDrive: H:
sambaLMPassword: 01FC5A6BE7BC6929AAD3B435B51404EE
sambaNTPassword: 0CB6948805F797BF2A82807973B89537
sambaPwdLastSet: 1271227877
userPassword: test