[tpop3d-discuss]ldap problems

Cameron Gregg cam at yak.com.au
Sun, 13 Jun 2004 22:47:11 +1000


Chris Lightfoot wrote:

> On Sun, Jun 13, 2004 at 10:06:24PM +1000, Cameron Gregg wrote:
> 
>>Chris Lightfoot wrote:
>>
>>
>>
>>>>Can you give me any hints on how to view packets coming from tpop3d?
>>>>
>>>>the following produces no output, which indicates it's not even getting 
>>>>to the point of connecting.
>>>>
>>>># /usr/local/sbin/tcpdump -vv host 192.168.30.5 and tcp dst port 389
>>>>
>>>>btw, both openldap and tpop3d are on the same box.
>>>
>>>
>>>-- try running tcpdump on the loopback interface (-i lo,
>>>probably); also, check that it sees traffic if you
>>>manually connect to the ldap server on the same url you've
>>>given tpop3d.
>>>
>>
>>doesn't seem to like lo or lo0 (ifconfig gives me lo0). It works with 
>>'host 127.0.0.1', but still no output.
>>
>>Shall I post some output of truss?
> 
> 
> yeah, if it shows anything useful....
> 

well, i dont know if it shows anything useful or not....


I just noticed this.

open("/usr/local/openldap/etc/openldap/ldap.conf", O_RDONLY) = 6

  Everything in my ldap.conf is commented out. Is there a requirement to 
have something in there?


Here is the output around where the errors occur. Useful?

thanks once again
Cam


read(5, " P A S S   s d f s d f d".., 2014)     = 16
read(5, 0x000880B2, 1998)                       Err#11 EAGAIN
time()                                          = 1087126684
uname(0xFFBEEF40)                               = 1
open64("/etc/.name_service_door", O_RDONLY)     = 6
fcntl(6, F_SETFD, 0x00000001)                   = 0
door_info(6, 0xFEF42730)                        Err#9 EBADF
close(6)                                        = 0
open("/etc/hosts", O_RDONLY)                    = 6
fstat64(6, 0xFFBECC48)                          = 0
ioctl(6, TCGETA, 0xFFBECBD4)                    Err#25 ENOTTY
read(6, " #\n #   I n t e r n e t".., 8192)     = 139
llseek(6, 0, SEEK_CUR)                          = 139
close(6)                                        = 0
sysconfig(_CONFIG_OPEN_FILES)                   = 256
open("/usr/local/openldap/etc/openldap/ldap.conf", O_RDONLY) = 6
fstat64(6, 0xFFBEF400)                          = 0
ioctl(6, TCGETA, 0xFFBEF38C)                    Err#25 ENOTTY
read(6, " #   $ O p e n L D A P :".., 8192)     = 333
read(6, 0x0008888C, 8192)                       = 0
llseek(6, 0, SEEK_CUR)                          = 333
close(6)                                        = 0
open("/export/home/cam/ldaprc", O_RDONLY)       Err#2 ENOENT
open("/export/home/cam/.ldaprc", O_RDONLY)      Err#2 ENOENT
open("ldaprc", O_RDONLY)                        Err#2 ENOENT
open64("/usr/lib/sasl2", O_RDONLY|O_NDELAY)     Err#2 ENOENT
so_socket(2, 2, 0, "", 1)                       = 6
setsockopt(6, 6, 1, 0xFFBEF4AC, 4, 1)           = 0
fcntl(6, F_GETFL, 0xFF30EE78)                   = 2
fstat64(6, 0xFFBEF250)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF350, 0xFFBEF348, 1) = 0
fstat64(6, 0xFFBEF2C0)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF3C0, 0xFFBEF3BC, -13856436) = 0
setsockopt(6, 65535, 8192, 0xFFBEF3C0, 4, -13856436) = 0
fcntl(6, F_SETFL, 0x00000082)                   = 0
connect(6, 0x00038BD8, 16, 1)                   = 0
fcntl(6, F_GETFL, 0xFF30EE90)                   = 130
fstat64(6, 0xFFBEF250)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF350, 0xFFBEF348, 0) = 0
fstat64(6, 0xFFBEF2C0)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF3C0, 0xFFBEF3BC, -13856436) = 0
setsockopt(6, 65535, 8192, 0xFFBEF3C0, 4, -13856436) = 0
fcntl(6, F_SETFL, 0x00000002)                   = 0
getpeername(6, 0xFFBEF490, 0xFFBEF070, 1)       = 0
open64("/etc/.name_service_door", O_RDONLY)     = 7
fcntl(7, F_SETFD, 0x00000001)                   = 0
door_info(7, 0xFEF42730)                        Err#9 EBADF
close(7)                                        = 0
open("/etc/inet/ipnodes", O_RDONLY)             = 7
fstat64(7, 0xFFBECA38)                          = 0
ioctl(7, TCGETA, 0xFFBEC9C4)                    Err#25 ENOTTY
read(7, " #\n #   I n t e r n e t".., 8192)     = 61
read(7, 0x0008A084, 8192)                       = 0
llseek(7, 0, SEEK_CUR)                          = 61
close(7)                                        = 0
open64("/etc/.name_service_door", O_RDONLY)     = 7
fcntl(7, F_SETFD, 0x00000001)                   = 0
door_info(7, 0xFEF42730)                        Err#9 EBADF
close(7)                                        = 0
open("/etc/hosts", O_RDONLY)                    = 7
fstat64(7, 0xFFBEC9B8)                          = 0
ioctl(7, TCGETA, 0xFFBEC944)                    Err#25 ENOTTY
read(7, " #\n #   I n t e r n e t".., 8192)     = 139
llseek(7, 0xFFFFFFFFFFFFFFE0, SEEK_CUR)         = 107
close(7)                                        = 0
uname(0xFFBEEE98)                               = 1
time()                                          = 1087126684
write(6, " 0 %020101 `  0201020413".., 39)      = 39
poll(0xFFBEEE80, 1, -1)                         = 1
read(6, " 0 2020101 a -\n", 8)                  = 8
read(6, "010204\004 & r e q u e s".., 44)       = 44
time()                                          = 1087126684
fstat(3, 0xFFBEF560)                            = 0
time()                                          = 1087126684
getpid()                                        = 10212 [10211]
putmsg(3, 0xFFBEEC18, 0xFFBEEC0C, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 7
door_info(7, 0xFFBEEB50)                        = 0
getpid()                                        = 10212 [10211]
door_call(7, 0xFFBEEB38)                        = 0
close(7)                                        = 0
try_ldap_connect_bind: ldap_simple_bind_s: Protocol errorwrite(2, " t r 
y _ l d a p _ c o n".., 57)     = 57

write(2, "\n", 1)                               = 1
write(6, " 005020102 B\0", 7)                   = 7
shutdown(6, 2, 1)                               = 0
close(6)                                        = 0
so_socket(2, 2, 0, "", 1)                       = 6
setsockopt(6, 6, 1, 0xFFBEF4AC, 4, 1)           = 0
fcntl(6, F_GETFL, 0xFF30EE78)                   = 2
fstat64(6, 0xFFBEF250)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF350, 0xFFBEF348, 0) = 0
fstat64(6, 0xFFBEF2C0)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF3C0, 0xFFBEF3BC, -13856436) = 0
setsockopt(6, 65535, 8192, 0xFFBEF3C0, 4, -13856436) = 0
fcntl(6, F_SETFL, 0x00000082)                   = 0
connect(6, 0x00038BF0, 16, 1)                   = 0
fcntl(6, F_GETFL, 0xFF30EE90)                   = 130
fstat64(6, 0xFFBEF250)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF350, 0xFFBEF348, 0) = 0
fstat64(6, 0xFFBEF2C0)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF3C0, 0xFFBEF3BC, -13856436) = 0
setsockopt(6, 65535, 8192, 0xFFBEF3C0, 4, -13856436) = 0
fcntl(6, F_SETFL, 0x00000002)                   = 0
getpeername(6, 0xFFBEF490, 0xFFBEF070, 1)       = 0
open64("/etc/.name_service_door", O_RDONLY)     = 7
fcntl(7, F_SETFD, 0x00000001)                   = 0
door_info(7, 0xFEF42730)                        Err#9 EBADF
close(7)                                        = 0
open("/etc/inet/ipnodes", O_RDONLY)             = 7
fstat64(7, 0xFFBECA38)                          = 0
ioctl(7, TCGETA, 0xFFBEC9C4)                    Err#25 ENOTTY
read(7, " #\n #   I n t e r n e t".., 8192)     = 61
read(7, 0x0008A084, 8192)                       = 0
llseek(7, 0, SEEK_CUR)                          = 61
close(7)                                        = 0
open64("/etc/.name_service_door", O_RDONLY)     = 7
fcntl(7, F_SETFD, 0x00000001)                   = 0
door_info(7, 0xFEF42730)                        Err#9 EBADF
close(7)                                        = 0
open("/etc/hosts", O_RDONLY)                    = 7
fstat64(7, 0xFFBEC9B8)                          = 0
ioctl(7, TCGETA, 0xFFBEC944)                    Err#25 ENOTTY
read(7, " #\n #   I n t e r n e t".., 8192)     = 139
llseek(7, 0xFFFFFFFFFFFFFFE0, SEEK_CUR)         = 107
close(7)                                        = 0
uname(0xFFBEEE98)                               = 1
time()                                          = 1087126684
write(6, " 0 %020101 `  0201020413".., 39)      = 39
poll(0xFFBEEE80, 1, -1)                         = 1
read(6, " 0 2020101 a -\n", 8)                  = 8
read(6, "010204\004 & r e q u e s".., 44)       = 44
time()                                          = 1087126684
fstat(3, 0xFFBEF560)                            = 0
time()                                          = 1087126684
getpid()                                        = 10212 [10211]
putmsg(3, 0xFFBEEC18, 0xFFBEEC0C, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 7
door_info(7, 0xFFBEEB50)                        = 0
getpid()                                        = 10212 [10211]
door_call(7, 0xFFBEEB38)                        = 0
close(7)                                        = 0
try_ldap_connect_bind: ldap_simple_bind_s: Protocol errorwrite(2, " t r 
y _ l d a p _ c o n".., 57)     = 57

write(2, "\n", 1)                               = 1
write(6, " 005020102 B\0", 7)                   = 7
shutdown(6, 2, 1)                               = 0
close(6)                                        = 0
so_socket(2, 2, 0, "", 1)                       = 6
setsockopt(6, 6, 1, 0xFFBEF4AC, 4, 1)           = 0
fcntl(6, F_GETFL, 0xFF30EE78)                   = 2
fstat64(6, 0xFFBEF250)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF350, 0xFFBEF348, 0) = 0
fstat64(6, 0xFFBEF2C0)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF3C0, 0xFFBEF3BC, -13856436) = 0
setsockopt(6, 65535, 8192, 0xFFBEF3C0, 4, -13856436) = 0
fcntl(6, F_SETFL, 0x00000082)                   = 0
connect(6, 0x00038C20, 16, 1)                   = 0
fcntl(6, F_GETFL, 0xFF30EE90)                   = 130
fstat64(6, 0xFFBEF250)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF350, 0xFFBEF348, 0) = 0
fstat64(6, 0xFFBEF2C0)                          = 0
getsockopt(6, 65535, 8192, 0xFFBEF3C0, 0xFFBEF3BC, -13856436) = 0
setsockopt(6, 65535, 8192, 0xFFBEF3C0, 4, -13856436) = 0
fcntl(6, F_SETFL, 0x00000002)                   = 0
getpeername(6, 0xFFBEF490, 0xFFBEF070, 1)       = 0
open64("/etc/.name_service_door", O_RDONLY)     = 7
fcntl(7, F_SETFD, 0x00000001)                   = 0
door_info(7, 0xFEF42730)                        Err#9 EBADF
close(7)                                        = 0
open("/etc/inet/ipnodes", O_RDONLY)             = 7
fstat64(7, 0xFFBECA38)                          = 0
ioctl(7, TCGETA, 0xFFBEC9C4)                    Err#25 ENOTTY
read(7, " #\n #   I n t e r n e t".., 8192)     = 61
read(7, 0x0008A084, 8192)                       = 0
llseek(7, 0, SEEK_CUR)                          = 61
close(7)                                        = 0
open64("/etc/.name_service_door", O_RDONLY)     = 7
fcntl(7, F_SETFD, 0x00000001)                   = 0
door_info(7, 0xFEF42730)                        Err#9 EBADF
close(7)                                        = 0
open("/etc/hosts", O_RDONLY)                    = 7
fstat64(7, 0xFFBEC9B8)                          = 0
ioctl(7, TCGETA, 0xFFBEC944)                    Err#25 ENOTTY
read(7, " #\n #   I n t e r n e t".., 8192)     = 139
llseek(7, 0xFFFFFFFFFFFFFFE0, SEEK_CUR)         = 107
close(7)                                        = 0
uname(0xFFBEEE98)                               = 1
time()                                          = 1087126684
write(6, " 0 %020101 `  0201020413".., 39)      = 39
poll(0xFFBEEE80, 1, -1)                         = 1
read(6, " 0 2020101 a -\n", 8)                  = 8
read(6, "010204\004 & r e q u e s".., 44)       = 44
time()                                          = 1087126684
fstat(3, 0xFFBEF560)                            = 0
time()                                          = 1087126684
getpid()                                        = 10212 [10211]
putmsg(3, 0xFFBEEC18, 0xFFBEEC0C, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 7
door_info(7, 0xFFBEEB50)                        = 0
getpid()                                        = 10212 [10211]
door_call(7, 0xFFBEEB38)                        = 0
close(7)                                        = 0
try_ldap_connect_bind: ldap_simple_bind_s: Protocol errorwrite(2, " t r 
y _ l d a p _ c o n".., 57)     = 57

write(2, "\n", 1)                               = 1
write(6, " 005020102 B\0", 7)                   = 7
shutdown(6, 2, 1)                               = 0
close(6)                                        = 0
fstat(3, 0xFFBEF5D0)                            = 0
time()                                          = 1087126684
getpid()                                        = 10212 [10211]
putmsg(3, 0xFFBEEC88, 0xFFBEEC7C, 0)            = 0
open("/var/run/syslog_door", O_RDONLY)          = 6
door_info(6, 0xFFBEEBC0)                        = 0
getpid()                                        = 10212 [10211]
door_call(6, 0xFFBEEBA8)                        = 0
close(6)                                        = 0
auth_ldap_new_user_pass: unable to connect and bind to LDAP 
serverwrite(2, " a u t h _ l d a p _ n e".., 66)    = 66