>
>
> Without the filter
>
>
> $ id aimaretti
> uid=1234(aimaretti) gid=513(Domain Users) grups=513(Domain
> Users),675(intranet),676(portal),507(devel)
> $ id pruebaunix
> id: pruebaunix: l’usuari no existeix
> $ LC_ALL=en id pruebaunix
> id: pruebaunix: no such user
Hi
OK then, so just compare the DN of aimaretti with that of pruebauinx.
Post them here if you like:
ldbsearch --url=/usr/local/samba/private/sam.ldb cn=aimaretti
and
ldbsearch --url=/usr/local/samba/private/sam.ldb cn=pruebaunix
Cheers,
Steve
OK, but just to avoid you the hassle to compare the two, here is a
summary of the differences:
* pruebaunix is missing the posixAccount objectClass, the description
and homeDrive (though I don't think the last two are what's causing the
problem and the missing posixAccount is normal AD behavior)
* pruebaunix has the following fields not present in aimaretti:
-givenName
-msSFU3OName
-sn
-uid
-unixUserPassword
-userPrincipalName
>
> ldbsearch --url=/usr/local/samba/private/sam.ldb cn=aimaretti
# record 1
dn: CN=aimaretti,CN=Users,DC=wetron,DC=es
cn: aimaretti
instanceType: 4
whenCreated: 20130816222436.0Z
whenChanged: 20130816222436.0Z
uSNCreated: 5300
name: aimaretti
objectGUID: cf69597e-c29e-4734-8fee-0c5f261593b9
badPwdCount: 0
codePage: 0
countryCode: 0
badPasswordTime: 0
lastLogoff: 0
lastLogon: 0
primaryGroupID: 513
objectSid: S-1-5-21-1375475485-2168029398-3937786652-3468
accountExpires: 9223372036854775807
logonCount: 0
sAMAccountName: aimaretti
sAMAccountType: 805306368
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=wetron,DC=es
pwdLastSet: 129115956830000000
displayName: Alberto Aimaretti
homeDrive: U:
logonHours:: ////////////////////////////
userAccountControl: 512
description: Usuario Wetron
uidNumber: 1234
objectClass: top
objectClass: posixAccount
objectClass: person
objectClass: organizationalPerson
objectClass: user
unixHomeDirectory: /home/aimaretti
loginShell: /bin/false
gidNumber: 513
msSFU30NisDomain: wetron
uSNChanged: 5304
memberOf: CN=devel,CN=Users,DC=wetron,DC=es
memberOf: CN=intranet,CN=Users,DC=wetron,DC=es
memberOf: CN=portal,CN=Users,DC=wetron,DC=es
distinguishedName: CN=aimaretti,CN=Users,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/CN=Configuration,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/DC=DomainDnsZones,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/DC=ForestDnsZones,DC=wetron,DC=es
# returned 4 records
# 1 entries
# 3 referrals
> and
> ldbsearch --url=/usr/local/samba/private/sam.ldb cn=pruebaunix
# Referral
ref: ldap://wetron.es/CN=Configuration,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/DC=DomainDnsZones,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/DC=ForestDnsZones,DC=wetron,DC=es
# returned 3 records
# 0 entries
# 3 referrals
(oops, I forgot that this user has a space in the cn, and, no, that's
not the problem, I have other users without a space in the cn, don't
mind the OU, it was an unrelated test, other users under CN=Users work
the same)
$ sudo /usr/local/samba/bin/ldbsearch
--url=/usr/local/samba/private/sam.ldb cn="prueba unix"
# record 1
dn: CN=prueba unix,OU=kk,DC=wetron,DC=es
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: prueba unix
sn: unix
givenName: prueba
instanceType: 4
whenCreated: 20130827101804.0Z
uSNCreated: 7219
name: prueba unix
objectGUID: deb50617-08a6-4c98-8d81-73c0134514ee
badPwdCount: 0
codePage: 0
countryCode: 0
badPasswordTime: 0
lastLogoff: 0
lastLogon: 0
primaryGroupID: 513
objectSid: S-1-5-21-1375475485-2168029398-3937786652-4011
accountExpires: 9223372036854775807
logonCount: 0
sAMAccountName: pruebaunix
sAMAccountType: 805306368
userPrincipalName: prueb...@wetron.es
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=wetron,DC=es
pwdLastSet: 130220722840000000
userAccountControl: 512
msSFU30Name: pruebaunix
unixUserPassword: ABCD!efgh12345$67890
uid: pruebaunix
msSFU30NisDomain: wetron
loginShell: /bin/sh
unixHomeDirectory: /home/pruebaunix
uidNumber: 10069
displayName: pruebaunix
gidNumber: 513
memberOf: CN=intranet,CN=Users,DC=wetron,DC=es
memberOf: CN=brmuestra,CN=Users,DC=wetron,DC=es
whenChanged: 20130828004001.0Z
uSNChanged: 7249
distinguishedName: CN=prueba unix,OU=kk,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/CN=Configuration,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/DC=DomainDnsZones,DC=wetron,DC=es
# Referral
ref: ldap://wetron.es/DC=ForestDnsZones,DC=wetron,DC=es
# returned 4 records
# 1 entries
# 3 referrals
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004 Fax +34 935883007
Hi
Without objectClass: posixAccount
you need the filter for nslcd.
IOW, for AD, you either must add it yourself or use the nslcd filter.
Windows does not need the objectClass. nslcd does unless you want to
filter everything.
HTH
Steve
Hi
Yeah, nslcd works well, but for AD funcionality and speed, sssd is the
only way to go for nss on Samba4 or any m$ server.
Just my €0.02
> Yeah, nslcd works well, but for AD funcionality and speed, sssd is the
> only way to go for nss on Samba4 or any m$ server.
> Just my €0.02
I'll try it. I only used nslcd because that's what was suggested in the
samba wiki.
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004 Fax +34 935883007
The Winbind and sssd Howto isn't finished yet. Currently I don't have to
much time, but I'm working on. :-)
Regards,
Marc
Don't worry, given that samba4 should work as a windows server, there
are many tutorials that explain how to configure sssd against active
directory (though my attempts so fare have been unsuccessful).
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004 Fax +34 935883007
We have sssd covered here:
http://linuxcostablanca.blogspot.com.es/2013/04/sssd-in-samba-40.html
sssd 1.11.1 was released today. I'll report back:)
HTH
Steve
Oooof. ¡Doloroso!
Marc's howto will be here soon:)
Bueno. Algo es algo, pero todavía nos falta los atributos procedentes de
AD.
Saludos,
Steve
Ya, el SIGSEV parece que sea debido a un problema con cyrus-sasl-2.1.25
(for the non Spanish speaking audience: it seems that cyrus-sasl-2.1.25
has a problem in gssapi.c causing a segfault)
http://www.spinics.net/lists/cyrus-sasl/msg02004.html
I'll try to build a version with the fix
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004 Fax +34 935883007
I take it that everything is now working ok and you can see all your
users, if so, I suggest you write up how you did it and get it published
somewhere.
Rowland
>
> - try to learn how kerberos is supposed to work before trying to use it
>
>
> Bye and thank you for your patience
Did it an it worked.
Lessons learned:
- make sure that the hostname is the same as the netbios name (or is
there a parameter to make it work when they are different?)
- don't listen to people suggesting to switch distributions (I know how
to debug/build things with mageia, I wouldn't know where to start with
another one)
- try to learn how kerberos is supposed to work before trying to use it
Bye and thank you for your patience