[問題] samba 無法使用 LDAP 認證
如題...
經過了一番波折後 成功的透過了SAMBA新增LDAP帳號進去了
但在驗證時出現了下面無法驗證的情況
[root@samba]# smbclient //192.168.0.*/test -U user
Server's Role (logon server) conflicts with share-level security
Enter user's password:(這邊輸入了正確的LDAP密碼 我直接用明碼複製貼上的)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.2.11-0.28.fc9]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_WRONG_PASSWORD
麻煩各位前輩們給予寶貴的建議
--
/etc/samba/smb.conf 設定如下
[global]
security = share
#這行不要動
ldap admin dn = "cn=Manager,dc=aaa,dc=aaa"
passdb backend = ldapsam:ldap://192.168.0.*
ldap delete dn = yes
ldap user suffix = "ou=login,dc=aaa,dc=aaa"
ldap group suffix = "dc=aaa,dc=aaa"
ldap ssl = off
# ldap port = 389
ldap suffix = "dc=aaa,dc=aaa"
# security = user
ldap machine suffix = ou=login
# ldap passwd sync = yes
# encrypt passwords = no
# ldap filter = "(&(uid=cn)(objectclass=top))"
client lanman auth = yes
# unix password sync = Yes
netbios name = pubfiles
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = workgroup
# server string is the equivalent of the NT Description field
server string = Samba Server
[TEST] <--測試用資料夾
path = /disk/ms_share/其他
security = user
# read only = No
browseable = yes
writable = yes
[資料夾] <--此資料夾可以正常使用
path = /disk/ms_share
only guest = yes
# public = yes
writable = yes
printable = no
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.128.223.100