[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: samba server



chuchyyy wrote:
is there a relation between my problem and a configuration of
common-auth in /etc/pam.d/, or common-passwd?
Cause i did all advices that u told me but it doesnt work...

Nope. PAM is for authentication. NSS is like DNS for user IDs

On 5/17/05, chuchyyy <chuchyyyforum@gmail.com> wrote:

here is my ldif file :

dn: cn=admin,dc=netc,dc=net
objectclass: sambaSamAccount
cn: admin
o: netc
uid : 0
mail: admin@netc.net
sn: Administrateur

then ldapadd.

Ahh. This is not a posixAccount. NSS is going to be looking for posixAccount objects. Here's an example of an account:

dn: uid=Administrator,ou=People,dc=dev,dc=com
cn: Administrator
objectClass: inetOrgPerson
objectClass: sambaSamAccount
objectClass: posixAccount
objectClass: shadowAccount
gidNumber: 512
uid: Administrator
uidNumber: 0
homeDirectory: /home/Administrator
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaHomeDrive: H:
sambaPrimaryGroupSID: S-1-5-21-36851585-1427149615-4264512839-512
sambaSID: S-1-5-21-36851585-1427149615-4264512839-2996
loginShell: /bin/false
gecos: Netbios Domain Administrator
userPassword::
sn: System Administrator
displayName: System admin
sambaPwdCanChange: 2004901635
sambaPwdMustChange: 2147483647
sambaLMPassword:
sambaNTPassword:
sambaPasswordHistory: 00000000000000000000000000000000000000000000000000000000
 00000000
sambaPwdLastSet: 2004901635
sambaAcctFlags: [U          ]


Keep in mind, there is no need for your Admin account to be your main ldap admin account. I have never tried making that account into a posix/samba user.

-Mark



Reply to: