Ricardo Chamorro
2007-Apr-29 02:52 UTC
[Samba] Urgent pls!!! Error in "pdbedit -L" with rid 513
Samba 3.0.24 on Debian Etch 4 - PDC security=user When I execute "pdbedit -L" there are a strange error: lookup_global_sam_rid: looking up RID 513. pdb_getsampwrid (TDB): error looking up RID 513 by key RID_00000201. Error: Record does not exist store_gid_sid_cache: gid 1005 in cache -> S-1-5-21-275117359-2948478385-1723927003-513 I paste a copy of pdbedit -L, net groupmap list and testparm here: Linux:~# pdbedit -L INFO: Current debug levels: all: True/5 tdb: False/0 printdrivers: False/0 lanman: False/0 smb: False/0 rpc_parse: False/0 rpc_srv: False/0 rpc_cli: False/0 passdb: False/0 sam: False/0 auth: False/0 winbind: False/0 vfs: False/0 idmap: False/0 quota: False/0 acls: False/0 locking: False/0 msdfs: False/0 dmapi: False/0 doing parameter log file = /var/log/samba/log.%m doing parameter max log size = 100 doing parameter syslog only = no doing parameter syslog = 0 doing parameter panic action = /usr/share/samba/panic-action %d doing parameter security = user doing parameter encrypt passwords = yes doing parameter passdb backend = tdbsam doing parameter obey pam restrictions = yes doing parameter unix password sync = yes doing parameter passwd program = /usr/bin/passwd %u doing parameter passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* . doing parameter domain logons = yes doing parameter logon path = \\%N\profiles\%U doing parameter logon script = logon.cmd doing parameter socket options = TCP_NODELAY doing parameter domain master = auto pm_process() returned Yes Attempting to register new charset UCS-2LE Registered charset UCS-2LE Attempting to register new charset UTF-16LE Registered charset UTF-16LE Attempting to register new charset UCS-2BE Registered charset UCS-2BE Attempting to register new charset UTF-16BE Registered charset UTF-16BE Attempting to register new charset UTF8 Registered charset UTF8 Attempting to register new charset UTF-8 Registered charset UTF-8 Attempting to register new charset ASCII Registered charset ASCII Attempting to register new charset 646 Registered charset 646 Attempting to register new charset ISO-8859-1 Registered charset ISO-8859-1 Attempting to register new charset UCS2-HEX Registered charset UCS2-HEX Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Attempting to register passdb backend ldapsam Successfully added passdb backend 'ldapsam' Attempting to register passdb backend ldapsam_compat Successfully added passdb backend 'ldapsam_compat' Attempting to register passdb backend NDS_ldapsam Successfully added passdb backend 'NDS_ldapsam' Attempting to register passdb backend NDS_ldapsam_compat Successfully added passdb backend 'NDS_ldapsam_compat' Attempting to register passdb backend smbpasswd Successfully added passdb backend 'smbpasswd' Attempting to register passdb backend tdbsam Successfully added passdb backend 'tdbsam' Attempting to find an passdb backend to match tdbsam (tdbsam) Found pdb backend tdbsam pdb backend tdbsam has a valid init Netbios name list:- my_netbios_names[0]="LINUX" Attempting to find an passdb backend to match tdbsam (tdbsam) Found pdb backend tdbsam pdb backend tdbsam has a valid init tdbsam_open: successfully opened /var/lib/samba/passdb.tdb Home server: linux Home server: linux lookup_global_sam_rid: looking up RID 513. pdb_getsampwrid (TDB): error looking up RID 513 by key RID_00000201. Error: Record does not exist store_gid_sid_cache: gid 1005 in cache -> S-1-5-21-275117359-2948478385-1723927003-513 nobody:65534:nobody Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 proxy:13:proxy Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 Ricardo$:1004:Pc de Ricardo Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 riki:1000:RA,,, Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 ameliae:1002:,,, Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 www-data:33:www-data Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 root:0:root Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 news:9:news Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 bin:2:bin Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 mail:8:mail Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 daemon:1:daemon Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 man:6:man Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 lp:7:lp Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 Debian-exim:100: Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 gnats:41:Gnats Bug-Reporting System (admin) Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 backup:34:backup Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 sys:3:sys Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 ricardoa:1001:,,, Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 identd:102: Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 list:38:Mailing List Manager Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 irc:39:ircd Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 statd:101: Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 sync:4:sync Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 pepeeee:1003:,,, Home server: linux Home server: linux fetch gid from cache 1005 -> S-1-5-21-275117359-2948478385-1723927003-513 uucp:10:uucp tdbsam_getsampwent: end of list Linux:~# ------------end paste---------------------------------------------------- This error seems to me strange because I did "net mapgroup add..." without there were problems. I paste a copy here of net mapgroup: Linux:~# net groupmap list Domain Admins (S-1-5-21-275117359-2948478385-1723927003-512) -> domadmin Domain Guests (S-1-5-21-275117359-2948478385-1723927003-514) -> domguests Domain Users (S-1-5-21-275117359-2948478385-1723927003-513) -> domusers ----------------END PASTE------------------------------------------------- Samba works fine and testparm is: Linux:~# testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[windows]" Processing section "[netlogon]" Processing section "[profiles]" Processing section "[printers]" Loaded services file OK. Server role: ROLE_DOMAIN_PDC Press enter to see a dump of your service definitions [global] workgroup = CORPORATE server string = %h server interfaces = 192.168.111.0/24, eth0 bind interfaces only = Yes obey pam restrictions = Yes passdb backend = tdbsam passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes log level = 5 syslog = 0 log file = /var/log/samba/log.%m max log size = 100 name resolve order = lmhosts host wins bcast logon script = logon.cmd logon path = \\%N\profiles\%U domain logons = Yes os level = 64 preferred master = Yes dns proxy = No wins support = Yes panic action = /usr/share/samba/panic-action %d [homes] comment = Home Directories valid users = %S read only = No create mask = 0700 directory mask = 0700 browseable = No [windows] comment = Directorio Compartido en RED path = /windows valid users = @domusers read only = No create mask = 0775 directory mask = 0775 [netlogon] comment = Network Logon Service path = /home/samba/netlogon write list = root guest ok = Yes browseable = No share modes = No [profiles] comment = Users profiles path = /var/samba/profiles create mask = 0600 directory mask = 0770 browseable = No [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No Linux:~# ---------------------------------end paste--------------------------------------- Thanks in advance Ricardo A. Buenos Aires
Gerald (Jerry) Carter
2007-Apr-29 02:56 UTC
[Samba] Urgent pls!!! Error in "pdbedit -L" with rid 513
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ricardo Chamorro wrote:> Samba 3.0.24 on Debian Etch 4 - PDC security=user > When I execute "pdbedit -L" there are a strange error: > > lookup_global_sam_rid: looking up RID 513. > pdb_getsampwrid (TDB): error looking up RID 513 by key RID_00000201. > Error: Record does not exist > store_gid_sid_cache: gid 1005 in cache -> S-1-5-21-275117359-2948478385-1723927003-513I see no error here. We tru to lookup a SID as a user (which should fail in this case) and the resolve it using the group mapping table. jerry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGNAlgIR7qMdg1EfYRAu0qAKCOA2dLLWRilT8S2Z5ceH6xgg+lggCgzHz7 C9BXkRtEjilgn8ie5T36BFM=8Uvv -----END PGP SIGNATURE-----