當 OpenLDAP 中的資料超過 500 筆的時候
由於 openldap 預設的限制 會只傳回 500 筆 (跟搜尋的方式有關)
使得 nss_ldap 在超過500筆之後帳號資訊 將無法得知
能登入但無法使用 finger 查詢
就會發生有些 ldap user 可以查詢 (500 筆內) 有些不行 (500筆之後)
anyway following is the setting to remove the limit
sizelimit {<integer>|unlimited}
sizelimit size[.{soft|hard|unchecked}]=<integer> [...]
Specify the maximum number of entries to return from a search
operation. The default size limit is 500. Use unlimited to
specify no limits. The second format allows a fine grain
setting of the size limits. Extra args can be added on the same
line. See limits for an explanation of the different flags.
參考自: http://www.openldap.org/software/man.cgi?query=slapd.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.3-Release
在 LDAP Server (slap.conf) 中修改
我本來以為是在 LDAP Client 中 (ldap.conf)
*stare
—–
Filed under: 蟲的研究心得

最新回應