Forum Linux.général LDAP + Samba : "utilisateur introuvable" sur Windows XP

Posté par  .
Étiquettes :
-2
17
mai
2011

Bonjour à tous,

J'ai suivi ce tuto pour gérer un serveur LDAP + Samba sur Ubuntu 8.04 et j'ai un petit problème...

Lorsque j'essayes de me loguer sous Windows avec mon LDAP, j'ai un message d'erreur : "

May 17 16:53:12 server smbd[16789]: [2011/05/17 16:53:12, 2] smbd/sesssetup.c:setup_new_vc_session(1209) 
May 17 16:53:12 server smbd[16789]:   setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. 
May 17 16:53:12 server smbd[16789]: [2011/05/17 16:53:12, 2] smbd/sesssetup.c:setup_new_vc_session(1209) 
May 17 16:53:12 server smbd[16789]:   setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. 
May 17 16:53:12 server smbd[16789]: [2011/05/17 16:53:12, 0] smbd/map_username.c:map_username(107) 
May 17 16:53:12 server smbd[16789]:   can't open username map /etc/samba/smbusers. Error No such file or directory 
May 17 16:53:12 server smbd[16789]: [2011/05/17 16:53:12, 2] lib/smbldap.c:smbldap_open_connection(786) 
May 17 16:53:12 server smbd[16789]:   smbldap_open_connection: connection opened 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (uid) not indexed 
May 17 16:53:12 server smbd[16789]: [2011/05/17 16:53:12, 2] passdb/pdb_ldap.c:init_sam_from_ldap(545) 
May 17 16:53:12 server smbd[16789]:   init_sam_from_ldap: Entry found for user: root 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (gidNumber) not indexed 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (gidNumber) not indexed 
May 17 16:53:12 server smbd[16789]: [2011/05/17 16:53:12, 2] auth/auth.c:check_ntlm_password(309) 
May 17 16:53:12 server smbd[16789]:   check_ntlm_password:  authentication for user [root] -> [root] -> [root] succeeded 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (sambaSID) not indexed 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (sambaGroupType) not indexed 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (sambaSIDList) not indexed 
May 17 16:53:12 server last message repeated 4 times
May 17 16:53:12 server smbd[16789]: [2011/05/17 16:53:12, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2916) 
May 17 16:53:12 server smbd[16789]:   Returning domain sid for domain ELISATH -> S-1-5-21-2939895350-3594457592-4010879848 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (uid) not indexed 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (displayName) not indexed 
May 17 16:53:12 server slapd[16121]: <= bdb_equality_candidates: (cn) not indexed 
May 17 16:53:13 server slapd[16121]: <= bdb_equality_candidates: (uid) not indexed 
May 17 16:53:13 server smbd[16789]: [2011/05/17 16:53:13, 0] passdb/pdb_interface.c:pdb_default_create_user(329) 
May 17 16:53:13 server smbd[16789]:   _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w "windowsxp$"' gave 9 

Apparemment, ce qui fous les bordel c'est ce "can't open username map /etc/samba/smbusers. Error No such file or directory "...

Mais je vois pas comment remédier à cela...

Des idées ? :S

Merci à tous.

  • # compte utilisateur, machine

    Posté par  (site web personnel) . Évalué à 2.

    Sont-ils crées ? Comment le savoir ?

    Système - Réseau - Sécurité Open Source - Ouvert à de nouvelles opportunités

    • [^] # Re: compte utilisateur, machine

      Posté par  . Évalué à 0.

      Tu parles des utilisateurs ?

      Dans LDAP oui :

      # smbldap-userlist 
      uid  |username             
         0 |root                 
      65534 |nobody               
      1001 |pdupont              
      1002 |windowsxp$         
      

      Mais dans Samba, je sais pas =/.

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.