From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 From: Alex Moskalenko Organization: JSC STC Electron-Service To: "ALT Linux sysadmins' discussion" Date: Wed, 17 Aug 2011 09:53:58 +0400 User-Agent: KMail/1.9.10 (enterprise35 0.20100827.1168748) MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201108170953.58488.mav@elserv.msk.su> Subject: [Sysadmins] =?utf-8?q?p6=2C_bind9=2E8-sdb_=D0=B8_ldap?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux sysadmins' discussion List-Id: ALT Linux sysadmins' discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 05:54:06 -0000 Archived-At: List-Archive: =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0=B5! =D0=92=D0=BE=D0=B7=D0=BD=D0=B8=D0=BA=D0=BB=D0=BE =D0=B6=D0=B5=D0=BB=D0=B0= =D0=BD=D0=B8=D0=B5 =D1=85=D1=80=D0=B0=D0=BD=D0=B8=D1=82=D1=8C =D1=81=D1=82= =D0=B0=D1=82=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=B5 DNS-=D0=B7=D0=BE=D0= =BD=D1=8B =D0=B2 ldap. =D0=92 p6 =D0=BD=D0=B0=D1=88=D0=B5=D0=BB=D1=81=D1=8F= =D0=BF=D0=B0=D0=BA=D0=B5=D1=82=20 bind9.8-sdb-9.8.0-alt0.2, =D1=81=D0=BE=D0=B3=D0=BB=D0=B0=D1=81=D0=BD=D0=BE = =D0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B2=D0=B8=D1= =82=D1=8C ldap-=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80, bind =D0=BD=D0=B5 =D0= =BF=D0=B0=D0=B4=D0=B0=D0=B5=D1=82. Bind =D0=B8 slapd=20 =D0=BD=D0=B0=D1=85=D0=BE=D0=B4=D1=8F=D1=82=D1=81=D1=8F =D0=B2 =D1=80=D0=B0= =D0=B7=D0=BD=D1=8B=D1=85 OpenVZ =D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=B9=D0=BD= =D0=B5=D1=80=D0=B0=D1=85. =D0=92=D0=B5=D1=80=D1=81=D0=B8=D0=B8 =D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE= =D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D1=85 =D0=BF=D0=B0=D0=BA=D0=B5=D1=82= =D0=BE=D0=B2: VE =D1=81 bind libbind9.8-9.8.0-alt0.2 bind9.8-9.8.0-alt0.2 bind9.8-utils-9.8.0-alt0.2 bind9.8-doc-9.8.0-alt0.2 bind-control-1.1-alt1 bind9.8-sdb-9.8.0-alt0.2 libldap2.4-2.4.24-alt5 VE =D1=81 LDAP openldap2.4-2.4.24-alt5 openldap2.4-clients-2.4.24-alt5 libldap2.4-2.4.24-alt5 openldap2.4-servers-2.4.24-alt5 =D0=9E=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=B8=D0=B5 sdb-=D0=B7=D0=BE=D0=BD=D1= =8B =D0=B2 bind: zone "test.local" IN { type master; database "ldap=20 ldap://192.168.0.3/zoneName=3Dtest.local.,ou=3DDnsZones,o=3Dtest????!bindna= me=3Dcn=3Dnamed%2cou=3DDaemons%2co=3Dtest,!x-bindpw=3Dsecretpassword=20 86400"; }; LDAP-=D1=81=D0=B5=D1=80=D0=B2=D0=B5=D1=80 =D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1= =8C=D0=B7=D1=83=D0=B5=D1=82 =D1=81=D1=85=D0=B5=D0=BC=D1=83 dnszone, =D1=81= =D0=BE=D0=BE=D1=82=D0=B2=D0=B5=D1=82=D1=81=D1=82=D0=B2=D1=83=D1=8E=D1=89=D0= =B8=D0=B5 =D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D0=B8 =D0=B2=20 ou=3DDnsZones,o=3Dtest =D0=B8=D0=BC=D0=B5=D1=8E=D1=82=D1=81=D1=8F. =D0=9F=D1=80=D0=BE=D1=82=D0=BE=D0=BA=D0=BE=D0=BB slapd =D0=BF=D1=80=D0=B8 = =D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B5 bind (LogLevel=3D-1): Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on 1 descriptor=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on: Aug 17 09:40:42 ldap slapd[18626]: =20 Aug 17 09:40:42 ldap slapd[18626]: slap_listener_activate(7): =20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D7 busy=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D8 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: >>> slap_listener(ldap:///)=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: listen=3D7, new connection on 12= =20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on 1 descriptor=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on: Aug 17 09:40:42 ldap slapd[18626]: =20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D7 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D8 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: added 12r (active) listener=3D(n= il)=20 Aug 17 09:40:42 ldap slapd[18626]: conn=3D1000 fd=3D12 ACCEPT from=20 IP=3D192.168.244.20:38472 (IP=3D0.0.0.0:389)=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on 1 descriptor=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on: Aug 17 09:40:42 ldap slapd[18626]: 12r Aug 17 09:40:42 ldap slapd[18626]: =20 Aug 17 09:40:42 ldap slapd[18626]: daemon: read active on 12=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D7 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D8 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on 1 descriptor=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on: Aug 17 09:40:42 ldap slapd[18626]: =20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D7 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D8 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: connection_get(12)=20 Aug 17 09:40:42 ldap slapd[18626]: connection_get(12): got connid=3D1000=20 Aug 17 09:40:42 ldap slapd[18626]: connection_read(12): checking for input = on=20 id=3D1000=20 Aug 17 09:40:42 ldap slapd[18626]: ber_get_next on fd 12 failed errno=3D0=20 (Success)=20 Aug 17 09:40:42 ldap slapd[18626]: connection_read(12): input error=3D-2=20 id=3D1000, closing.=20 Aug 17 09:40:42 ldap slapd[18626]: connection_closing: readying conn=3D1000= =20 sd=3D12 for close=20 Aug 17 09:40:42 ldap slapd[18626]: connection_close: conn=3D1000 sd=3D12=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on 1 descriptor=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: activity on: Aug 17 09:40:42 ldap slapd[18626]: =20 Aug 17 09:40:42 ldap slapd[18626]: daemon: removing 12=20 Aug 17 09:40:42 ldap slapd[18626]: conn=3D1000 fd=3D12 closed (connection l= ost)=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D7 active_threads= =3D0=20 tvp=3DNULL=20 Aug 17 09:40:42 ldap slapd[18626]: daemon: epoll: listen=3D8 active_threads= =3D0=20 tvp=3DNULL=20 =D0=9A=D0=BE=D0=BD=D0=B5=D1=86 =D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0 strace = =2Df bind-sdb: [pid 17518] open("/etc/host.conf", O_RDONLY) =3D -1 ENOENT (No such file or= =20 directory) [pid 17518] futex(0x7feed1e89584, FUTEX_WAKE_PRIVATE, 2147483647) =3D 0 [pid 17518] open("/etc/hosts", O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such f= ile=20 or directory) [pid 17518] open("/etc/ld.so.cache", O_RDONLY) =3D -1 ENOENT (No such file = or=20 directory) [pid 17518] open("/lib64/tls/x86_64/libnss_dns.so.2", O_RDONLY) =3D -1 ENOE= NT=20 (No such file or directory) [pid 17518] stat("/lib64/tls/x86_64", 0x7fffe2343050) =3D -1 ENOENT (No suc= h=20 file or directory) [pid 17518] open("/lib64/tls/libnss_dns.so.2", O_RDONLY) =3D -1 ENOENT (No = such=20 file or directory) [pid 17518] stat("/lib64/tls", 0x7fffe2343050) =3D -1 ENOENT (No such file = or=20 directory) [pid 17518] open("/lib64/x86_64/libnss_dns.so.2", O_RDONLY) =3D -1 ENOENT (= No=20 such file or directory) [pid 17518] stat("/lib64/x86_64", 0x7fffe2343050) =3D -1 ENOENT (No such fi= le or=20 directory) [pid 17518] open("/lib64/libnss_dns.so.2", O_RDONLY) =3D -1 ENOENT (No such= file=20 or directory) [pid 17518] stat("/lib64", 0x7fffe2343050) =3D -1 ENOENT (No such file or=20 directory) [pid 17518] open("/usr/lib64/tls/x86_64/libnss_dns.so.2", O_RDONLY) =3D -1= =20 ENOENT (No such file or directory) [pid 17518] stat("/usr/lib64/tls/x86_64", 0x7fffe2343050) =3D -1 ENOENT (No= such=20 file or directory) [pid 17518] open("/usr/lib64/tls/libnss_dns.so.2", O_RDONLY) =3D -1 ENOENT = (No=20 such file or directory) [pid 17518] stat("/usr/lib64/tls", 0x7fffe2343050) =3D -1 ENOENT (No such f= ile=20 or directory) [pid 17518] open("/usr/lib64/x86_64/libnss_dns.so.2", O_RDONLY) =3D -1 ENOE= NT=20 (No such file or directory) [pid 17518] stat("/usr/lib64/x86_64", 0x7fffe2343050) =3D -1 ENOENT (No suc= h=20 file or directory) [pid 17518] open("/usr/lib64/libnss_dns.so.2", O_RDONLY) =3D -1 ENOENT (No = such=20 file or directory) [pid 17518] stat("/usr/lib64", 0x7fffe2343050) =3D -1 ENOENT (No such file = or=20 directory) [pid 17518] open("/etc/openldap/ldap.conf", O_RDONLY) =3D -1 ENOENT (No suc= h=20 file or directory) [pid 17518] geteuid() =3D 25 [pid 17518] getuid() =3D 25 [pid 17518] open("/root/ldaprc", O_RDONLY) =3D -1 ENOENT (No such file or=20 directory) [pid 17518] open("/root/.ldaprc", O_RDONLY) =3D -1 ENOENT (No such file or= =20 directory) [pid 17518] open("ldaprc", O_RDONLY) =3D -1 ENOENT (No such file or=20 directory) [pid 17518] socket(PF_NETLINK, SOCK_RAW, 0) =3D 5 [pid 17518] bind(5, {sa_family=3DAF_NETLINK, pid=3D0, groups=3D00000000}, 1= 2) =3D 0 [pid 17518] getsockname(5, {sa_family=3DAF_NETLINK, pid=3D17518, groups=3D0= 0000000},=20 [12]) =3D 0 [pid 17518] sendto(5, "\24\0\0\0\26\0\1\3ZTKN\0\0\0\0\0\0\0\0", 20, 0,=20 {sa_family=3DAF_NETLINK, pid=3D0, groups=3D00000000}, 12) =3D 20 [pid 17518] recvmsg(5, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,=20 groups=3D00000000},=20 msg_iov(1)=3D[{"0\0\0\0\24\0\2\0ZTKNnD\0\0\2\10\200\376\1\0\0\0\10\0\1\0\17= 7\0\0\1"...,=20 4096}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 104 [pid 17518] recvmsg(5, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,=20 groups=3D00000000},=20 msg_iov(1)=3D[{"@\0\0\0\24\0\2\0ZTKNnD\0\0\n\200\200\376\1\0\0\0\24\0\1\0\0= \0\0\0"...,=20 4096}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 64 [pid 17518] recvmsg(5, {msg_name(12)=3D{sa_family=3DAF_NETLINK, pid=3D0,=20 groups=3D00000000},=20 msg_iov(1)=3D[{"\24\0\0\0\3\0\2\0ZTKNnD\0\0\0\0\0\0\1\0\0\0\24\0\1\0\0\0\0\= 0"...,=20 4096}], msg_controllen=3D0, msg_flags=3D0}, 0) =3D 20 [pid 17518] close(5) =3D 0 [pid 17518] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) =3D 5 [pid 17518] fcntl(5, F_SETFD, FD_CLOEXEC) =3D 0 [pid 17518] setsockopt(5, SOL_SOCKET, SO_KEEPALIVE, [1], 4) =3D 0 [pid 17518] setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) =3D 0 [pid 17518] connect(5, {sa_family=3DAF_INET, sin_port=3Dhtons(389),=20 sin_addr=3Dinet_addr("192.168.244.30")}, 16) =3D 0 [pid 17518] --- {si_signo=3DSIGSEGV, si_code=3DSEGV_MAPERR,=20 si_addr=3D0xffffffffd5b32160} (Segmentation fault) --- Process 17518 detached =D0=9F=D1=80=D0=BE=D1=88=D1=83 =D0=BF=D0=BE=D0=BC=D0=BE=D1=89=D0=B8 =D1=83 = =D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D1=81=D1=82=D0=B2=D0=B0 - =D1=80=D0=B0= =D0=B1=D0=BE=D1=82=D0=BE=D1=81=D0=BF=D0=BE=D1=81=D0=BE=D0=B1=D0=BD=D0=B0 = =D0=BB=D0=B8 =D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B0=D1=8F =D1=81=D0=B1=D0=BE= =D1=80=D0=BA=D0=B0 bind 9.8 =D0=B2 p6 =D0=B2=20 =D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B5 =D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C= =D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F sdb? PS =D0=92=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE, =D0=B2 chroot bind =D0= =BD=D0=B5 =D1=85=D0=B2=D0=B0=D1=82=D0=B0=D0=B5=D1=82 =D0=BD=D1=83=D0=B6=D0= =BD=D1=8B=D1=85 =D0=B1=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA? =2D-=20 WBR, Alex Moskalenko