野村と申します。 「nss_ldap Couldn't search LDAP server.Server is unavailable」 というメッセージは/etcのnsswitch.confにldapのエントリを追加して からでるようになったようです。
# # nsswitch.conf(5) - name service switch configuration file # $FreeBSD: src/etc/nsswitch.conf,v 1.1 2006/05/03 15:14:47 ume Exp $ # group: files ldap group_compat: nis hosts: files dns ldap networks: files passwd: files ldap passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files 上記の passwd: files ldap passwd_compat: nis を passwd: files passwd_compat: nis ldap とするとnss-ldapのメッセージはでなくなりますが、今度は"id test3" 等として、ldapで追加したユーザをテストした時に"id: test3: no such user"といわれてしまいます。 また、test3ユーザでログインしようとした時に、パスワードの入力をして も受け付けてくれません。ユーザはphpldapadminで作っているのですが、 何が悪いのでしょうか? よろしくお願いします。 On Mon, 06 Apr 2009 14:19:51 +0900 野村 <[email protected]> wrote: > 返信ありがとうございます。 > > それぞれ下記のようになっております。 > > ###nss-ldap.conf### > host hagi.hoge > base dc=hoge > uri ldap://hagi.hoge/ > port 389 > bind_policy soft > nss_connect_policy oneshot > > ###ldap.conf### > BASE dc=hoge > URI ldap://hagi.hoge 389 > > SIZELIMIT 12 > TIMELIMIT 15 > DEREF never > > ###slapd.conf > include /usr/local/etc/openldap/schema/core.schema > include /usr/local/etc/openldap/schema/corba.schema > include /usr/local/etc/openldap/schema/cosine.schema > include /usr/local/etc/openldap/schema/inetorgperson.schema > include /usr/local/etc/openldap/schema/nis.schema > include /usr/local/etc/openldap/schema/openldap.schema > > pidfile /var/run/openldap/slapd.pid > argsfile /var/run/openldap/slapd.args > > modulepath /usr/local/libexec/openldap > moduleload back_bdb > > access to attrs=userPassword > by self write > by users read > by anonymous auth > > access to * > by self write > by users read > by anonymous read > > database bdb > suffix "dc=hoge" > rootdn "cn=ldaproot,dc=hoge" > rootpw {SSHA}password > > directory /var/db/openldap-data > > index objectClass eq > > 返事がおくれてすいません。よろしくお願いします。 > > On Fri, 3 Apr 2009 22:53:21 +0900 > Kouichiro Iwao <[email protected]> wrote: > > > 岩男です。 > > > > On Fri, Apr 03, 2009 at 05:23:44PM +0900, 野村 wrote: > > > 野村と申します。 > > > > > > ldapを導入しようとしてるのですが、slapd を起動する時に「nss_ldap > > > Couldn't search LDAP server.Server is unavailable」と出てしまい、困って > > > おります。 > > > > ひとまず、 > > /usr/local/etc/{nss_ldap.conf,ldap.conf,} > > /usr/local/etc/openldap/slapd.conf > > > > の設定内容を明かしてください。 > > > > -- > > 九州工業大学 学生自治ネットワーク委員会 > > 岩男 皓一朗 <[email protected]> > > __________ NOD32 3988 (20090404) 情報 __________ > > > > このメールはNOD32によって検査済みです。 > > http://canon-sol.jp > > > > --------------------------------------------------------------------- > gpg public key > https://hagi.ir-alt.co.jp/home/nomura/public-nomura.asc > > 野村 <[email protected]> > --------------------------------------------------------------------- > > __________ NOD32 3988 (20090404) 情報 __________ > > このメールはNOD32によって検査済みです。 > http://canon-sol.jp > --------------------------------------------------------------------- gpg public key https://hagi.ir-alt.co.jp/home/nomura/public-nomura.asc 野村 <[email protected]> ---------------------------------------------------------------------
