Hi my friends.

I was running world +revdep-rebuild, this process reinstall and install some packages, one of them was openldap(2.4.19)

dev-perl/perl-ldap-0.39 (0)
[I--] [ ] dev-python/python-ldap-2.3.9 (0)
[I--] [ ] net-nds/openldap-2.4.19 (0)
[I--] [ ] net-nds/smbldap-tools-0.9.4-r1 (0)
[I--] [ ] sys-auth/nss_ldap-258 (0)
[I--] [ ] sys-auth/pam_ldap-183 (0)

After this my PDC with samba start doing nasty things, I lost Users ID maps, example, this is the home folder:

drwx------ 4 1001 users 4096 Apr 27 2007 X
drwx------ 4 522 users 4096 Apr 27 2007 Y
drwxr-xr-x 2 root root 4096 Nov 11 2007 Z

The folders rights now appear as numbers not the username as before.

If I try to add a user to my domain:

smbldap-useradd -m -a W
Can't call method "get_value" on an undefined value at /usr/sbin/smbldap-useradd line 204, <DATA> line 466.

This is the line:

$userGroupSID = $group_entry->get_value('sambaSID');

I still have some libraries pointing to 2.3, looks like is because for compatibility.

If I try to change a user folder:

chown X:"Domain Users" again, the system just put the UID numbers.

I can get user data from ldap:

getent passwd | grep X
pmoreno:603:100:XX:/home/X:/bin/bash
root:0:0:root,,,X,:/home/root:/bin/false

mail home # smbldap-usershow Y
dn: uid=Y,ou=Users,dc=DOM,dc=com
shadowFlag: 134538308
shadowMin: -1
displayName: Y Y
uid: Y
shadowInactive: -1
uidNumber: 10014
gidNumber: 513
sn: Y
shadowWarning: 7
homeDirectory: /home/Y
givenName: Y
shadowExpire: 0
cn: Y Y
mail: Y#DOM.com
gecos:
objectClass: inetOrgPerson,posixAccount,shadowAccount,top,perso n,mailAccount
mailbox: /home/Y/Maildir/
mailuserquota: 0
maildrop: Y
mailenable: OK
loginShell: /sbin/nologin
userPassword: {CRYPT}VFVWrFpeETWaY
shadowLastChange: 14561
shadowMax: 9999

mail home # net groupmap list
Domain Admins (S-1-5-21-4251222264-2305318005-1441703024-512) -> 512
Backup Operators (S-1-5-32-551) -> 551
Administrators (S-1-5-32-544) -> 544
Domain Users (S-1-5-21-4251222264-2305318005-1441703024-513) -> 513
Domain Guests (S-1-5-21-4251222264-2305318005-1441703024-514) -> 514
users (S-1-5-21-4251222264-2305318005-1441703024-1201) -> users
Print Operators (S-1-5-32-550) -> 550
Domain Computers (S-1-5-21-4251222264-2305318005-1441703024-515) -> 515
Replicators (S-1-5-32-552) -> 552
Account Operators (S-1-5-32-54 -> 548
Users (S-1-5-32-545) -> 10000
test (S-1-5-21-4251222264-2305318005-1441703024-1033) -> 65537
altiview (S-1-5-21-4251222264-2305318005-1441703024-1046) -> 65538
mis (S-1-5-21-4251222264-2305318005-1441703024-1050) -> 65540
quickb (S-1-5-21-4251222264-2305318005-1441703024-1053) -> 65541

mail home # slapcat | grep X
dn: uid=X,ou=Users,dc=DOM,dc=com
uid: X
homeDirectory: /home/X
mailbox: /home/X/Maildir/
mail: X#DOM.com
memberUid: X
gecos: root,,,X
homePhone: X
memberUid: X
memberUid: X
memberUid: X

Nos lets see what happen in a centos client:

smbclient //DFD-server/pro -U W
Password:
Domain=[DOM] OS=[Unix] Server=[Samba 3.0.33-3.15.el5_4]
tree connect failed: NT_STATUS_NO_SUCH_USER
[root#sdsdds ~]# smbclient //DFD-server/pro -U W

and in the same machine:

getent passwd | grep W
W:10026:513:W W:/home/W:/bin/bash

The issue we have with the mail server for example, with some users it say that the folder doesn't have the right UID/GID as u read before, the folder does only show me the UID/GUI in numbers, in this case the home folder of that users have his UID/GID number.

Is very strange this, someone could point me where could be the issue and how to fixit? Do I have to switch back to 2.3?

Thanks !!

samba 2.0.36.