From owner-FreeBSD-users-jp@jp.FreeBSD.org Mon Apr  6 15:59:37 2009
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id n366xb972874;
	Mon, 6 Apr 2009 15:59:37 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from vcs003.hs.kddi.ne.jp (vcs003.hs.kddi.ne.jp [211.134.181.239])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id n366xbR72869
	for <freebsd-users-jp@jp.freebsd.org>; Mon, 6 Apr 2009 15:59:37 +0900 (JST)
	(envelope-from nomura@ir-alt.co.jp)
Received: from unknown (HELO vmail02.hs.kddi.ne.jp) (211.134.181.86)
  by vcs003 with SMTP; 6 Apr 2009 15:59:30 +0900
Received: from [192.168.1.204] (really [221.255.123.106])
          by vmail02.hs.kddi.ne.jp with ESMTP
          id <20090406065930859.GYGC.4981.vmail02.hs.kddi.ne.jp@hs.kddi.ne.jp>
          for <FreeBSD-users-jp@jp.FreeBSD.org>;
          Mon, 6 Apr 2009 15:59:30 +0900
From: =?ISO-2022-JP?B?GyRCTG5CPBsoQg==?= <nomura@ir-alt.co.jp>
To: FreeBSD-users-jp@jp.FreeBSD.org
In-Reply-To: <20090406141731.CACF.NOMURA@ir-alt.co.jp>
References: <20090403135321.GA18864@club.kyutech.ac.jp> <20090406141731.CACF.NOMURA@ir-alt.co.jp>
Message-Id: <20090406154413.CAD2.NOMURA@ir-alt.co.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.31 [ja]
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 06 Apr 2009 15:59:30 +0900
X-Sequence: FreeBSD-users-jp 92213
Subject: [FreeBSD-users-jp 92213] Re: ldap =?ISO-2022-JP?B?GyRCJE4bKEI=?=
 =?ISO-2022-JP?B?GyRCRjNGfhsoQg==?= 
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: nomura@ir-alt.co.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+060209

$BLnB<$H?=$7$^$9!#(B

$B!V(Bnss_ldap Couldn't search LDAP$B!!(Bserver.Server is unavailable$B!W(B
$B$H$$$&%a%C%;!<%8$O(B/etc$B$N(Bnsswitch.conf$B$K(Bldap$B$N%(%s%H%j$rDI2C$7$F(B
$B$+$i$G$k$h$&$K$J$C$?$h$&$G$9!#(B

#
# 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

$B>e5-$N(B
passwd: files ldap
passwd_compat: nis
$B$r(B
passwd: files
passwd_compat: nis ldap
$B$H$9$k$H(Bnss-ldap$B$N%a%C%;!<%8$O$G$J$/$J$j$^$9$,!":#EY$O(B"id test3"
$BEy$H$7$F!"(Bldap$B$GDI2C$7$?%f!<%6$r%F%9%H$7$?;~$K(B"id: test3: no such
user"$B$H$$$o$l$F$7$^$$$^$9!#(B

$B$^$?!"(Btest3$B%f!<%6$G%m%0%$%s$7$h$&$H$7$?;~$K!"%Q%9%o!<%I$NF~NO$r$7$F(B
$B$b<u$1IU$1$F$/$l$^$;$s!#%f!<%6$O(Bphpldapadmin$B$G:n$C$F$$$k$N$G$9$,!"(B
$B2?$,0-$$$N$G$7$g$&$+!)(B

$B$h$m$7$/$*4j$$$7$^$9!#(B

On Mon, 06 Apr 2009 14:19:51 +0900
$BLnB<(B <nomura@ir-alt.co.jp> wrote:

> $BJV?.$"$j$,$H$&$4$6$$$^$9!#(B
> 
> $B$=$l$>$l2<5-$N$h$&$K$J$C$F$*$j$^$9!#(B
> 
> ###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
> 
> $BJV;v$,$*$/$l$F$9$$$^$;$s!#$h$m$7$/$*4j$$$7$^$9!#(B
> 
> On Fri, 3 Apr 2009 22:53:21 +0900
> Kouichiro Iwao <meta@club.kyutech.ac.jp> wrote:
> 
> > $B4dCK$G$9!#(B
> > 
> > On Fri, Apr 03, 2009 at 05:23:44PM +0900, $BLnB<(B wrote:
> > > $BLnB<$H?=$7$^$9!#(B
> > > 
> > > ldap$B$rF3F~$7$h$&$H$7$F$k$N$G$9$,!"(Bslapd $B$r5/F0$9$k;~$K!V(Bnss_ldap
> > > Couldn't search LDAP server.Server is unavailable$B!W$H=P$F$7$^$$!":$$C$F(B
> > > $B$*$j$^$9!#(B
> > 
> > $B$R$H$^$:!"(B
> > /usr/local/etc/{nss_ldap.conf,ldap.conf,}
> > /usr/local/etc/openldap/slapd.conf
> > 
> > $B$N@_DjFbMF$rL@$+$7$F$/$@$5$$!#(B
> > 
> > -- 
> > $B6e=#9)6HBg3X!!3X@8<+<#%M%C%H%o!<%/0Q0w2q(B
> > $B4dCK(B $Bb+0lO/(B <meta@club.kyutech.ac.jp>
> > __________ NOD32 3988 (20090404) $B>pJs(B __________
> > 
> > $B$3$N%a!<%k$O(BNOD32$B$K$h$C$F8!:::Q$_$G$9!#(B
> > http://canon-sol.jp
> > 
> 
> --------------------------------------------------------------------- 
> gpg public key
> https://hagi.ir-alt.co.jp/home/nomura/public-nomura.asc
> 
> $BLnB<(B <nomura@ir-alt.co.jp>
> ---------------------------------------------------------------------
> 
> __________ NOD32 3988 (20090404) $B>pJs(B __________
> 
> $B$3$N%a!<%k$O(BNOD32$B$K$h$C$F8!:::Q$_$G$9!#(B
> http://canon-sol.jp
> 

--------------------------------------------------------------------- 
gpg public key
https://hagi.ir-alt.co.jp/home/nomura/public-nomura.asc

$BLnB<(B <nomura@ir-alt.co.jp>
---------------------------------------------------------------------

