[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: objectclass sambaSamAccount
On Tuesday 02 September 2008 15:47:53 Laurence Mayer wrote:
> Hi,
>
> OS: Linux Redhat x86_64
> OpenLdap 2.3.27
Add the EPEL repository, and 'yum install smbldap-tools'.
>
> I am trying to add an objectclass sambaSamAccount to my ou=People.
> My goal would be to have both samba and posix account for each user.
In most cases, the Posix attributes are a requirement in any case ...
> I have included the samba schema to the slapd.conf file.
>
> I tried adding this to a file and running ldapadd:
>
> dn: uid=laurence, ou=People,dc=istraresearch,dc=com
> sambaLogonTime: 0
> displayName: Laurence Mayer
> sambaLMPassword: xxxxx
> sambaPrimaryGroupSID: S-1-5-21-2447931902-1787058256-3961074038-1201
> objectClass: sambaSamAccount
> sambaAcctFlags: [UX ]
> gidNumber: 100
> sambaKickoffTime: 2147483647
> sambaPwdLastSet: 1010179230
> sambaSID: S-1-5-21-2447931902-1787058256-3961074038-5004
> sambaPwdCanChange: 0
> sambaPwdMustChange: 2147483647
> sambaNTPassword: xxxx
You really shouldn't be typing so much in manually ....
> However I received the error:
> adding new entry "uid=laurence, ou=People,dc=istraresearch,dc=com"
> ldap_add: Internal (implementation specific) error (80)
> additional info: no structuralObjectClass operational attribute
You only have one objectclass in the entry above, and it is not a structural
objectclass, but an auxiliary one. You should add a structural objectclass
The conventional one (and that used by smbldap-tools) is inetOrgPerson.
Regards,
Buchan