[Samba-it] Provare a rivolgersi all'amministratore di sistema

Piviul pluto at flanet.org
Fri Jun 11 13:46:01 MDT 2004


Piviul wrote:
> La butto lì. Per vedere se questo è vero non potrebbe qualcuno postarmi 
> i suoi files di configurazione (smb.conf, slapd.conf, ldap.conf,
> smbldap.conf e smbldap_bind.conf direi che possano bastare) così provo a 
> reinstallare slapd, ripopolare il database e cedere se tutto funziona?
> 
> Se non funziona anche con i vostri files di configurazione riformatto 
> tutto e reinstallo tutto.
> 
> Oppure se preferite vi posto i miei e se qualcuno ha voglia di dargli 
> un'occhiata...

Va bene ho capito, non vi sembra sia una strada che porti frutti (tenete 
comunque conto che, pur non centrando niente con questo problema in 
pam_ldap.conf ho trovato ancora il vecchio riferimento di ldap).

Tani modi... Ho provato allora a mettere loglevel=3 (con loglevel=5 
avevo 7500 righe di log generate soltanto dal tentativo di unire una 
workstation al dominio) e me ne sono ritrovato "soltanto" 1500. 
Ovviamente non ve le posto tutte ma soltanto le più interessanti.

[CUT]
> [2004/06/11 12:02:16, 3] rpc_server/srv_samr_nt.c:_samr_create_user(2245)
>   _samr_create_user: Running the command `/usr/local/sbin/smbldap-useradd -w "pcprova$"' gave 0
[CUT]
> [2004/06/11 12:02:16, 3] passdb/pdb_ldap.c:ldapsam_add_sam_account(1624)
>   ldapsam_add_sam_account: User exists without samba attributes: adding them
> [2004/06/11 12:02:16, 2] passdb/pdb_ldap.c:init_ldap_from_sam(812)
>   init_ldap_from_sam: Setting entry for user: pcprova$
> [2004/06/11 12:02:16, 2] passdb/pdb_ldap.c:ldapsam_add_sam_account(1734)
>   ldapsam_add_sam_account: added: uid == pcprova$ in the LDAP database
e quindi sembra lo abbia aggiunto.

Ma continuiamo
[CUT]
> [2004/06/11 12:02:16, 3] rpc_server/srv_pipe.c:api_rpcTNP(1535)
>   api_rpcTNP: rpc command: SAMR_SET_USERINFO
> [2004/06/11 12:02:16, 2] passdb/pdb_ldap.c:init_sam_from_ldap(483)
>   init_sam_from_ldap: Entry found for user: pcprova$
> [2004/06/11 12:02:16, 3] passdb/lookup_sid.c:fetch_gid_from_cache(247)
>   fetch uid from cache 513 -> S-1-5-21-3431822602-3229367053-3028099585-513
> [2004/06/11 12:02:17, 3] groupdb/mapping.c:smb_set_primary_group(1189)
>   smb_set_primary_group: Running the command `/usr/local/sbin/smbldap-usermod -g "Domain Users" "pcprova$"' gave 0
Ma perché tenta di aggiungere la workstation ai Domain users?

> [2004/06/11 12:02:17, 2] passdb/pdb_ldap.c:init_ldap_from_sam(812)
>   init_ldap_from_sam: Setting entry for user: pcprova$
> [2004/06/11 12:02:17, 1] passdb/pdb_ldap.c:ldapsam_modify_entry(1312)
>   ldapsam_modify_entry: Failed to modify user dn= uid=pcprova$,ou=WKS,dc=FLANET,dc=ORG with: No such attribute
>   	modify/delete: sambaPrimaryGroupSID: no such value
> [2004/06/11 12:02:17, 0] passdb/pdb_ldap.c:ldapsam_update_sam_account(1512)
>   ldapsam_update_sam_account: failed to modify user with uid = pcprova$, error: modify/delete: sambaPrimaryGroupSID: no such value (Success)
????
[CUT]
> [2004/06/11 12:02:17, 3] rpc_server/srv_pipe.c:api_rpcTNP(1535)
>   api_rpcTNP: rpc command: SAMR_DELETE_DOM_USER
> [2004/06/11 12:02:17, 2] passdb/pdb_ldap.c:init_sam_from_ldap(483)
>   init_sam_from_ldap: Entry found for user: pcprova$
> [2004/06/11 12:02:17, 3] rpc_server/srv_samr_nt.c:smb_delete_user(3638)
>   smb_delete_user: Running the command `/usr/local/sbin/smbldap-userdel "pcprova$"' gave 0
> [2004/06/11 12:02:17, 3] passdb/pdb_ldap.c:ldapsam_delete_sam_account(1406)
>   ldapsam_delete_sam_account: Deleting user pcprova$ from LDAP.
> [2004/06/11 12:02:17, 0] passdb/pdb_ldap.c:ldapsam_delete_entry(271)
>   ldapsam_delete_entry: Entry must exist exactly once!
e lo cancella anche se anche la frase "Entry must exist exactly once!" 
non la capisco.

Comunque ho fatto delle prove ed ho aggiunto a manina con 
"smbldap-useradd -w nomewks$" ed ho visto che effettivamente in 
"smbldap-usershow nomewks$" il SID non ce l'ha. E' normale? Vi potete 
immaginare cosa possa essere?

Grazie ancora

Piviul




More information about the samba-it mailing list