samba 無法使用 LDAP 認證 - Linux

Genevieve avatar
By Genevieve
at 2012-01-05T12:16

Table of Contents


如題...

經過了一番波折後 成功的透過了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


--
Tags: Linux

All Comments

gcin和法語鍵盤配置相衝?

Caroline avatar
By Caroline
at 2012-01-04T23:53
請教一下,我是用ubuntu11.04,預設的輸入法平台是gcin,平常用嘸蝦米打中文。 我發現gcin和法文的鍵盤配置有些鍵相衝,像是要打 ^e 這樣的符號時沒辦法出來。 (它的打法是先打^鍵再打e鍵就會出現帶重音的字母) scim好像沒問題,但我沒有在scim上灌嘸蝦米。 在語言設定中改過預設輸入法( ...

mint 12筆電關機不順

Cara avatar
By Cara
at 2012-01-04T19:48
這問題有一陣子了, 大致是上就是關機時會卡在一半, 螢幕黑掉了但是電沒切掉, 往往還得自己手動把電源斷掉, 不論是關機,重開機還是休眠有時都會發生這樣的情況, 有人有遇到嗎, 目前是有聽說kde之前有類似的情況, 我有裝不過沒在用耶.. -- 雖然已經被一槍打死了,但是這是貨真價實的聖誕老人沒錯。 - ...

不用光碟安裝 centos 6的方法?

Wallis avatar
By Wallis
at 2012-01-04T01:14
由於舊的機器不支援 sata 光碟機, 手邊也沒有 IDE 的光碟機了~ 使用 USB ? 莫名其妙的這台機器不支援 USB 2.0 開機~ 只能用 USB 1.1 low speed ……… 而且還有點短路短路…………放器~ 想說直接用硬碟來安裝……… 可以像以前 win 98 一樣直接把安裝程式丟在硬碟 ...

apache virtual host在/home下出錯

Daph Bay avatar
By Daph Bay
at 2012-01-03T18:55
小弟在設apache vhost時,這樣寫啟動apache時會出現警告 DocumentRoot and#34;/home/user/and#34; Warning: DocumentRoot [/home/user/] does not exist 但這樣寫就不會 DocumentRoot and# ...

Win7 OEM 隨機版?

Edwina avatar
By Edwina
at 2012-01-03T17:49
因為這似乎和 Linux User 比較有關係,所以先來這裡提問, 若您覺得發錯版請告知,敝人會立即刪文。 敝人最近想買一台 NB,看中了 Toshiba R850,賣點在於霧面螢幕。 不過我問過幾家代理商,都說這一款筆電強制搭載 Win7 Pro。 問題是我是要買來灌 Linux 的,Win7 啥的我用 ...