[Obm] Aide avec LDAP et OBM-Samba s'il vous plaît ...

Martin Gautier martin.gautier at myrnham.co.uk
Sun Aug 7 13:29:38 CEST 2011


Salut

J'essaie d'obtenir le système OBM-Samba travaille et je suis un peu de mal.

J'ai OBM-LDAP installé et fonctionne correctement.

J'ai installé Samba et la configuration comme ci-dessous. Les bits 
d'authentification Samba / LDAP j'ai glanées pages OBM différents et / 
usr / share / doc / obm-samba.

Le redémarrage de tous les services, je reçois une réponse valable à 
partir du

# smbclient -L myserver

Mais si j'essaie

smbclient -u admin -L myserver

je reçois

Enter admin's password:
session setup failed: NT_STATUS_LOGON_FAILURE

L'entrée de journal correspondante Samba est

[2011/08/05 17:36:18,  2] lib/smbldap.c:890(smbldap_open_connection)
   smbldap_open_connection: connection opened
[2011/08/05 17:36:18,  2] passdb/pdb_ldap.c:571(init_sam_from_ldap)
   init_sam_from_ldap: Entry found for user: admin
[2011/08/05 17:36:18,  0] passdb/pdb_get_set.c:211(pdb_get_group_sid)
   pdb_get_group_sid: Failed to find Unix account for admin
[2011/08/05 17:36:18,  1] auth/auth_util.c:577(make_server_info_sam)
   User admin in passdb, but getpwnam() fails!
[2011/08/05 17:36:18,  0] auth/auth_sam.c:355(check_sam_security)
   check_sam_security: make_server_info_sam() failed with 
'NT_STATUS_NO_SUCH_USER'
[2011/08/05 17:36:18,  2] auth/auth.c:320(check_ntlm_password)
   check_ntlm_password:  Authentication for user [admin] -> [admin] 
FAILED with error NT_STATUS_NO_SUCH_USER

Maintenant "admin" est un utilisateur valide, je peux le voir dans 
l'arbre LDAP comme peut smbd. Il échoue juste pour s'authentifier.

Je n'ai pas fait n'importe quoi avec smbpasswd ou pdbedit. Dois-je? 
Devrais-je être capable de définir le mot de passe dans OBM-UI et 
ensuite s'attendre à être en mesure d'accéder à la part de Samba?

Fondamentalement, j'ai fait l'installe Samba, OBM-LDAP & OBM-Samba. J'ai 
configuré smb.conf. Que dois-je faire ensuite?

Martin

smb.conf
-------------
[global]
workgroup = WORKGROUP
netbios name = MYSERVER
server string = %h server
domain master = yes
domain logons = yes
preferred master = yes
os level = 255
local master = yes
wins support = yes
name resolve order = hosts wins bcast
dns proxy = no
log file = /var/log/samba/log.%m
log level = 2
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
null passwords = no
passdb backend = ldapsam:ldap://127.0.0.1/
ldap passwd sync = no
ldap suffix = dc=local
ldap machine suffix = ou=hosts
ldap user suffix = ou=users
ldap group suffix = ou=groups
ldap admin dn = "uid=samba,ou=sysusers,dc=local"
ldap ssl = no
obey pam restrictions = yes
unix password sync = yes
pam password change = no
passwd program = /usr/share/obm/www/auto/changePasswd.pl --login %u 
--interactiv --unix --sql --no-old --domain-id 2
passwd chat = *new\spassword:* %n\n *new\spassword:* %n\n 
*Password\supdate\ssuccess*
passwd chat debug = no
logon home =
load printers = no
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
usershare allow guests = yes
[public]
    comment = Public Area
    read only = no
    writeable = yes
    locking = no
    public = yes
    browseable = yes
    path = /var/lib/samba/public
    guest ok = no





More information about the Obm mailing list