hello all, 

with helpful suggestions from this newsgroup, i was able to install cyrus 2.0.14 
running with ldap (openldap 1.2) auth.  so i tried sieve out.  

# telnet localhost sieve
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v1.0.0"
"SASL" "LOGIN PLAIN"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress regex"
OK


correct password for user 'demo' is 'demo'

[root@homer /root]# installsieve -u demo -i demo1.script localhost
Please enter your password: ZGVtbw==
Unable to connect to server at /usr/local/bin/installsieve line 121, <STDIN> chunk 1.

[root@homer /root]# installsieve -u demo -i demo1.script localhost
Please enter your password: demo
Unable to connect to server at /usr/local/bin/installsieve line 121, <STDIN> chunk 1.

noticed i tried both the base64 encrypted password and the plain text password, but 
both give me failures.  looking in ldap debug code for the 2 operations above:

conn=0 fd=7 connection from localhost.localdomain (127.0.0.1) accepted.
conn=0 op=0 BIND dn="" method=128
conn=0 op=0 RESULT err=0 tag=97 nentries=0
conn=0 op=1 SRCH base="O=MAGICALLYDNS.NET" scope=2 filter="(uid=DEMO)"
conn=1 fd=11 connection from localhost.localdomain (127.0.0.1) accepted.
conn=0 op=-1 fd=7 closed errno=0
conn=0 op=1 RESULT err=0 tag=101 nentries=1
conn=0 op=2 UNBIND
conn=1 op=0 BIND dn="CN=DEMO,O=MAGICALLYDNS.NET" method=128
conn=2 fd=7 connection from localhost.localdomain (127.0.0.1) accepted.
conn=1 op=0 RESULT err=49 tag=97 nentries=0
conn=1 op=1 UNBIND
conn=1 op=1 fd=11 closed errno=0
conn=2 op=0 BIND dn="" method=128
conn=2 op=-1 fd=7 closed errno=0
conn=2 op=0 RESULT err=0 tag=97 nentries=0
conn=3 fd=7 connection from localhost.localdomain (127.0.0.1) accepted.
conn=3 op=0 BIND dn="" method=128
conn=3 op=0 RESULT err=0 tag=97 nentries=0
conn=3 op=1 SRCH base="O=MAGICALLYDNS.NET" scope=2 filter="(uid=DEMO)"
conn=4 fd=11 connection from localhost.localdomain (127.0.0.1) accepted.
conn=3 op=-1 fd=7 closed errno=0
conn=3 op=1 RESULT err=0 tag=101 nentries=1
conn=3 op=2 UNBIND
conn=4 op=0 BIND dn="CN=DEMO,O=MAGICALLYDNS.NET" method=128
conn=4 op=0 RESULT err=0 tag=97 nentries=0
conn=5 fd=7 connection from localhost.localdomain (127.0.0.1) accepted.
conn=4 op=-1 fd=11 closed errno=0
conn=4 op=1 UNBIND
conn=5 op=0 BIND dn="" method=128
conn=5 op=0 RESULT err=0 tag=97 nentries=0
conn=5 op=-1 fd=7 closed errno=0
conn=5 op=1 UNBIND

i've compared these entries with successful logins and the patterns suggest that the 
first ldap bind for "cn=demo,o=magicallydns.net" probably isn't successful (conn=1 
op=0 RESULT err=49 tag=97 nentries=0) but the second one should be ok (conn=4 op=0 
RESULT err=0 tag=97 nentries=0)

am i still missing sth?  why isn't binding successful from timsieved whereas it's 
perfectly ok for imapd.

thanks,
manuel.

Reply via email to