Hallo Leute!
Hat jemand ein funktionierendes Beispiel für Samba 3 mit MySQL-Backend?
Ich habe auf einen Server die oben genannte Version Samba mit dem Plugin kompiliert, allerdings spuckt sie immer ein Fehler mit Speicherzugriffsfehler jedes Mal dass ich pdbedit -L aufrufe oder mit smbclient versuche was zu machen.
Hier was ich als Fehlermeldung bekomme:
my_netbios_names[0]="CCH-SRV" 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 register passdb backend wbc_sam Successfully added passdb backend 'wbc_sam' Attempting to find a passdb backend to match mysql:cchmysql (mysql) No builtin backend found, trying to load plugin Probing module 'mysql' Probing module 'mysql': Trying to load from /opt/samba35/lib/pdb/mysql.so Module '/opt/samba35/lib/pdb/mysql.so' loaded Attempting to register passdb backend mysql Successfully added passdb backend 'mysql' Found pdb backend mysql Connecting to database server, host: localhost, user: root, database: samba_auth, port: 3306 Connected to mysql db pdb backend mysql:cchmysql has a valid init Executing query SELECT logon_time,logoff_time,kickoff_time,pass_last_set_time,pass_can_change_time,pass_must_change_time,username,'CCH',nt_username,nt_fullname,home_dir,dir_drive,logon_script,profile_path,acct_desc,workstations,unknown_str,munged_dial,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,logon_divs,hours_len,bad_password_count,logon_count,unknown_6,logon_hours,password_history FROM user WHERE '1' = '1' Found 1 results Executing query SELECT logon_time,logoff_time,kickoff_time,pass_last_set_time,pass_can_change_time,pass_must_change_time,username,'CCH',nt_username,nt_fullname,home_dir,dir_drive,logon_script,profile_path,acct_desc,workstations,unknown_str,munged_dial,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,logon_divs,hours_len,bad_password_count,logon_count,unknown_6,logon_hours,password_history FROM user WHERE user_sid = 'S-1-5-21-1221218113-3236600507-845243310-3053626805' Opening cache file at /var/lib/samba/locks/gencache.tdb Opening cache file at /var/lib/samba/locks/gencache_notrans.tdb lookup_global_sam_rid: looking up RID 3053626805. Executing query SELECT logon_time,logoff_time,kickoff_time,pass_last_set_time,pass_can_change_time,pass_must_change_time,username,'CCH',nt_username,nt_fullname,home_dir,dir_drive,logon_script,profile_path,acct_desc,workstations,unknown_str,munged_dial,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,logon_divs,hours_len,bad_password_count,logon_count,unknown_6,logon_hours,password_history FROM user WHERE user_sid = 'S-1-5-21-1221218113-3236600507-845243310-3053626805' lookup_global_sam_rid: looking up RID 3053626805.
die letzte Meldung wird X-mal wiederholt bis es mit einem Speicherzugriffsfehler abschmiert...
Hat jemand eine Idee?
Danke Luca Bertoncello (lucabert@lucabert.de)
lug-dd@mailman.schlittermann.de