Andreas Aardal Hanssen ([EMAIL PROTECTED]) wrote:
> Hei sveis Morten, :-)
> 
> On Tue, 25 Nov 2003, Morten Grunnet Buhl wrote:
> >when I do a telnet 10.0.0.5 143 an try to log in this happens
...
> >1 LOGIN user passwd
> 
> At this point, the checkpassword stub is called. So this fails somehow,
> but I was hoping for more output from the stub in the logs. I'm guessing
> that the stub returns 0 as if everything went okay, while it actually
> didn't manage to execute bincimapd.
> 
> >32435 1 [EMAIL PROTECTED]:] Unprivileged stub shutting down - read:0
> >bytes, wrote:0 bytes.
> 
> Could you try an strace? Try connecting to bincimap-up's pid when you've
> connected with telnet (strace -s 128 -f -p <pid>). Note the -f argument to
> follow bincimapd.
- Theres a first time for everything. Here goes (with my useful
  comments):

Script started on Tue Nov 25 17:19:46 2003
...
[pid 32791] write(3,
"0-\2\1\1`(\2\1\3\4\33cn=ldapadmin,dc=deter,dc=dk\200\6VERYSECRET", 47) = 47
[pid 32791] select(1024, [3], [], NULL, NULL) = 1 (in [3])
[pid 32791] read(3, "0\f\2\1\1a\7\n\1\0\4\0\4\0", 16384) = 14
[pid 32791] gettimeofday({1815045995, 795894116}, NULL) = 0
[pid 32791] gettimeofday({1919052140, 1701409377}, NULL) = 0
[pid 32791] write(3,
"0\201\301\2\1\2c\201\273\4\34ou=qmail_ldap,dc=deter,dc=dk\n\1\2\n\1\0\2\1\0\2\1\0\1\1\0\240)\243\30\4\vobjectClass\4\tqmailUser\243\r\4\3uid\4\6user0a\4\3uid\4\10qmailUID\4\10qmailGID\4\rac"...,
196) = 1
96
[pid 32791] gettimeofday({1853189987, 1635013492}, NULL) = 0
[pid 32791] select(1024, [3], [], NULL, {0, 0}) = 1 (in [3])
[pid 32791] read(3,
"0\201\304\2\1\2d\201\276\4&cn=TestUser,ou=qmail_ldap,dc=deter,dc=dk0\201\22308\4\fuserPassword1(\4&{SSHA}jIjIWrWqV9JwCJVdZ8d1iBi56hHGxcMw0\17\4\3uid1\10\4\6user0"...,
16384) = 213
...

It actually finds my user, wow.

...
[pid 32791] gettimeofday({1628242969, 1970234211}, NULL) = 0
[pid 32791] gettimeofday({1951626350, 1937077345}, NULL) = 0
[pid 32791] break(0x8065000)            = 0
[pid 32791] write(3, "0\5\2\1\3B\0", 7) = 7
[pid 32791] shutdown(3, 2 /* send and receive */) = 0
[pid 32791] close(3)                    = 0
[pid 32791] geteuid(0)                  = 0
[pid 32791] setgroups(1, [4326145] <unfinished ...>
--- SIGCHLD (Child exited) ---
<... select resumed> )                  = 1 (in [1 5 6])
read(7, "", 1024)                       = 0
close(7)                                = 0
close(6)                                = 0
wait4(32791, [WIFSIGNALED(s) && WTERMSIG(s) == 117], 0, NULL) = 32791
setitimer(ITIMER_REAL, {it_interval={791358311, 1937008994},
it_value={1819570991, 1819042143}}, {it_interval={1747870575,
1667584768}, it_value={1953067637, 1634336889}}) = 0
write(2, "32781 1 [EMAIL PROTECTED]:] Unprivileged stub shutting down -
read:0 bytes, wrote:0 bytes.\r\n", 92) = 92
setitimer(ITIMER_REAL, {it_interval={895890432, 3145784},
it_value={134875232, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
exit(0)                                 = ?
Script done on Tue Nov 25 17:21:37 2003

if more is needed I have more where it came from.

It look to me like bincimapd is never called?

> You can also try some debug output from the stub if you have access to its
> sources.
- I am guessing by stub you mean auth_pop?

> >I can pop3 fine with a slightly modified version of the run script
> >supplied with qmail-ldap.
> How did you modify it?

I just changed it to look more like the setup you get from the
qmail-conf package. like reading ./env and such. I tested with their
vanilla run script and it also works fine.

One pretty important information I forgot in the last mail is that its
all set up for virtual users.
my mail is located in /data/maildirs where the user vmailer only has access.
In a desperate attempt I tried running bincimapd as root:
Security {
    jail path = "/usr/local/bin/",
    jail user = "root",
    jail group = "wheel"
}

with the same result.

As mentioned before if more information is needed I can deliver.
Many thanks for all the help



--
Morten Grunnet Buhl
Pocket Philosopher, only in dreams.

Reply via email to