[Samba-it] PDC samba

ivan re re.ivan at gmail.com
Mon Feb 9 15:15:59 MST 2009


scusate se torno sull'argomento ma non ho avuto grandi risposte.

Ho creato un PDC (usando tdbsam) con samba 3.2.28a (la versione stabile per
i repo di Ubuntu Hardy). Ho seguito sia la guida di openskill che il manuale
ufficiale su samba.org

Purtroppo quando tento di inserire un client xp servica pack3 nel dominio
(su samba ho inserito la add machine script mentre su xp ho fatto tutte le
modifiche ai servizi ed alle voci ri registro come indicato da openskill e
da manuale ufficiale) mi dice che l'utente non è valido. Ho analizzato i log
(con livello 3 e poi 10) ma senza trovare nulla.
Ovviamente l'utenet usato è root ed ho impostato la password samba con
smbpasswd -a root.

di seguito fornisco il risultato del comando pdbedit -L -v -u root (il
smb.con l'ho già inviato qualche giorno fa).

E' possibile che la samba 3.2.28a abbia un bug sull'aggiunta automatica di
un client al dominio???


 pdbedit -L -v -u root
INFO: Current debug levels:
  all: True/10
  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 syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter security = user
doing parameter encrypt passwords = true
doing parameter passdb backend = tdbsam
doing parameter valid users = root ivan
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *New*UNIX*password* %n\n
*Retype*new*UNIX*password* %n\n *Enter* new*UNIX*password* %n\n
*Retype*new*UNIX*password* %n\n *passwd: *all*
authentication*tokens*updated*successfully*
doing parameter pam password change = no
doing parameter domain logons = yes
doing parameter preferred master = yes
doing parameter local master = yes
doing parameter os level = 65
doing parameter logon path = \\%N\%U\profile
doing parameter logon drive = H:
doing parameter logon home = \\%N\%U
doing parameter logon script = tutti.bat
doing parameter add user script = /usr/sbin/useradd -m %u
doing parameter delete user script = /usr/sbin/userdel -r %u
doing parameter add group script = /usr/sbin/groupadd %g
doing parameter delete group script = /usr/sbin/groupdel %g
doing parameter add user to group script = /usr/sbin/usermod -G %g %u
doing parameter add machine script = /usr/sbin/useradd -d /dev/null -g
machines -s /bin/false -M %u
doing parameter hosts allow = 127.0.0.1 192.168.1.0/24
doing parameter socket options = TCP_NODELAY  IPTOS_LOWDELAY SO_RCVBUF=8192
SO_SNDBUF=8192
doing parameter domain master = yes
doing parameter usershare allow guests = yes
doing parameter null passwords = no
doing parameter hide unreadable = yes
doing parameter hide dot files = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_PDC
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
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]="BETELGEUSE"
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
pdb_set_username: setting username root, was
pdb_set_domain: setting domain ORIONE, was
pdb_set_nt_username: setting nt username , was
pdb_set_full_name: setting full name root, was
Home server: betelgeuse
pdb_set_homedir: setting home dir \\betelgeuse\root, was
pdb_set_dir_drive: setting dir drive H:, was NULL
pdb_set_logon_script: setting logon script tutti.bat, was
Home server: betelgeuse
pdb_set_profile_path: setting profile path \\betelgeuse\root\profile, was
pdb_set_workstations: setting workstations , was
grant_privilege: S-1-1-0
original privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-548
original privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-549
original privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-550
original privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-551
original privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV  0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-544
original privilege mask:
SE_PRIV  0xff0 0x0 0x0 0x0
new privilege mask:
SE_PRIV  0xff0 0x0 0x0 0x0
account_policy_get: name: password history, val: 0
pdb_set_user_sid: setting user sid
S-1-5-21-2345715014-676501296-80902976-1000
pdb_set_user_sid_from_rid:
    setting user sid S-1-5-21-2345715014-676501296-80902976-1000 from rid
1000
tdbsam_close: Reference count is now 0.
Unix username:        root
NT username:
Account Flags:        [U          ]
User SID:             S-1-5-21-2345715014-676501296-80902976-1000
Finding user root
Trying _Get_Pwnam(), username as lowercase is root
Get_Pwnam_internals did find user [root]!
Primary Group SID:    S-1-5-21-2345715014-676501296-80902976-513
Full Name:            root
Home Directory:       \\betelgeuse\root
HomeDir Drive:        H:
Logon Script:         tutti.bat
Profile Path:         \\betelgeuse\root\profile
Domain:               ORIONE
Account desc:
Workstations:
Munged dial:
Logon time:           0
Logoff time:          never
Kickoff time:         never
Password last set:    lun, 09 feb 2009 22:55:04 CET
account_policy_get: name: minimum password age, val: 0
Password can change:  lun, 09 feb 2009 22:55:04 CET
account_policy_get: name: maximum password age, val: -1
Password must change: never
Last bad password   : 0
Bad password count  : 0
Logon hours         : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
root at betelgeuse:~#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/samba-it/attachments/20090209/e896a8cc/attachment.html>


More information about the samba-it mailing list