I'm still trying to get authldap working for courier-imap.

This is on sol9/sparc and ldap server is IPlanet 5.1.
LDAP libraries I used to link against are also from Sun/Netscape SDK
User directories are local. No virtual domains. The base dn and
other LDAP settings seem correct ( uidnumber, gidnumber, homedirectory,
userpassword )

It seems to generate the search requests properly, which
I can see in ldap log file, when it binds with a user name and
password supplied, does a search and gets some values in return,
but I can't tell what it does with those values after that.
I simply get "001 NO Login failed." Does this mean it never receives the
search results back or does authentication fail for some other reason ?
Log output from LDAP server and truss output from authdaemond.ldap are
below.

thank you all in advance.

[26/Apr/2004:13:09:46 -0400] conn=51474 fd=90 slot=90 connection from
192.168.1.2 to 192.168.1.3
[26/Apr/2004:13:09:46 -0400] conn=51474 op=0 BIND dn="" method=128
version=2
[26/Apr/2004:13:09:46 -0400] conn=51474 op=0 RESULT err=0 tag=97
nentries=0 etime=0 dn=""
[26/Apr/2004:13:09:46 -0400] conn=51474 op=1 SRCH
base="ou=people,dc=domain,dc=com" scope=2 filter="(uid=user)"
attrs="homeDirectory cn userPassword uidNumber gidNumber uid"
[26/Apr/2004:13:09:46 -0400] conn=51474 op=1 RESULT err=0 tag=101
nentries=1 etime=0



--------------------- truss

truss -p 1898
poll(0xFFBFFA20, 2, 300000)     (sleeping...)
poll(0xFFBFFA20, 2, 300000)                     = 1
accept(8, 0xFFBFFB84, 0xFFBFFB94, 1)            = 4
fcntl(4, F_SETFL, 0x00000000)                   = 0
poll(0xFFBFF4F0, 1, 10000)                      = 1
read(4, " A U T H   2 9\n i m a p".., 1024)     = 38
open("/usr/libexec/courier/etc/authldaprc", O_RDONLY) = 6
fstat(6, 0xFFBFF360)                            = 0
fstat64(6, 0xFFBFF1A8)                          = 0
brk(0x0003E148)                                 = 0
brk(0x00040148)                                 = 0
fstat64(6, 0xFFBFF050)                          = 0
ioctl(6, TCGETA, 0xFFBFF134)                    Err#25 ENOTTY
read(6, " # # V E R S I O N :   $".., 8192)     = 7273
open("/etc/netconfig", O_RDONLY|O_LARGEFILE)    = 9
fcntl(9, F_DUPFD, 0x00000100)                   Err#22 EINVAL
read(9, " # p r a g m a   i d e n".., 1024)     = 1024
read(9, " t s           t p i _ c".., 1024)     = 215
read(9, 0x000376B0, 1024)                       = 0
lseek(9, 0, SEEK_SET)                           = 0
read(9, " # p r a g m a   i d e n".., 1024)     = 1024
read(9, " t s           t p i _ c".., 1024)     = 215
read(9, 0x000376B0, 1024)                       = 0
close(9)                                        = 0
open("/dev/udp", O_RDONLY)                      = 9
ioctl(9, 0xC00C6982, 0xFFBFEB34)                = 0
close(9)                                        = 0
open64("/var/run/name_service_door", O_RDONLY)  = 9
fcntl(9, F_SETFD, 0x00000001)                   = 0
door_info(9, 0xFF042748)                        = 0
door_call(9, 0xFFBFCAA0)                        = 0
so_socket(PF_INET, SOCK_STREAM, IPPROTO_IP, "", 1) = 10
sigfillset(0xFF042940)                          = 0
sigprocmask(SIG_BLOCK, 0xFFBFED00, 0xFFBFECF0)  = 0
fcntl(10, F_GETFL, 0x00000000)                  = 2
fcntl(10, F_SETFL, 0x00000082)                  = 0
connect(10, 0xFFBFED10, 16, 1)                  Err#150 EINPROGRESS
poll(0xFFBFEAB0, 1, -1)                         = 1
getsockopt(10, SOL_SOCKET, SO_ERROR, 0xFFBFEC84, 0xFFBFEB78, 1) = 0
fcntl(10, F_SETFL, 0x00000002)                  = 0
sigprocmask(SIG_SETMASK, 0xFFBFECF0, 0x00000000) = 0
time()                                          = 1082999111
write(10, " 0\f020101 `0702010204\0".., 14)     = 14
poll(0x000376F0, 5, -1)                         = 1
brk(0x00040148)                                 = 0
brk(0x00042148)                                 = 0
read(10, " 0\f020101 a07\n01\004\0".., 8192)    = 14
time()                                          = 1082999111
time()                                          = 1082999111
write(10, " 08181020102 c |041F o u".., 132)    = 132
time()                                          = 1082999111
poll(0x000376F0, 5, 5000)                       = 1
read(10, " 081A0020102 d819A04 ) u".., 8192)    = 177
time()                                          = 1082999111
time()                                          = 1082999111
poll(0xFFBFF490, 1, 30000)                      = 1
write(4, " F A I L\n", 5)                       = 5
close(4)                                        = 0
poll(0xFFBFFA20, 2, 300000)     (sleeping...)



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to