Hi Ken,
 I did manage to get it to compile with LDAP 2.0.7 now. With a configure
like of 
./configure --enable-sqwebmail-pass=y --enable-logging=y
--enable-passwd=n --enable-ldap=y

I am still getting these warnings during compile
vauth.c: In function `vauth_getpw':
vauth.c:79: warning: too many arguments for format
vauth.c: In function `vauth_getall':
vauth.c:306: warning: too many arguments for format
vauth.c: In function `vauth_adddomain':
vauth.c:557: warning: too many arguments for format
vauth.c: In function `vauth_deldomain':
vauth.c:602: warning: too many arguments for format

But it does compile and install and when I run vadddomain it's not
throwing assertions but instead is
throwing this error

root@test2:/home/vpopmail/bin# ./vadddomain test.com
Please enter password for postmaster:
enter password again:
Error: Unable to chdir to vpopmail/users directory

Not real sure what that means but I'm open for suggestions. :)

The LDAP server is show these errors when I run it as slapd -d 256
This is a domain delete:
daemon: conn=0 fd=9 connection from IP=127.0.0.1:1367 (IP=0.0.0.0:389)
accepted.
conn=0 op=0 BIND dn="CN=MANAGER,DC=ALTAMENTE,DC=COM" method=128
ber_flush: 14 bytes to sd 9
conn=0 op=0 RESULT tag=97 err=0 text=
deferring operation
conn=0 op=1 SRCH base="dc=altamente, dc=com" scope=2
filter="(objectClass=qmailU
ser)"
ber_flush: 14 bytes to sd 9
conn=0 op=1 SEARCH RESULT tag=101 err=0 text=
conn=0 op=2 DEL dn="dc=altamente, dc=com"
ber_flush: 42 bytes to sd 9
conn=0 op=2 RESULT tag=107 err=66 text=subtree delete not supported
conn=0 op=3 UNBIND
conn=-1 fd=9 closed

This is a domain add:
ber_flush: 14 bytes to sd 9
conn=1 op=0 RESULT tag=97 err=0 text=
deferring operation
conn=1 op=1 ADD dn="DC=ALTAMENTE,DC=COM"
ber_flush: 14 bytes to sd 9
conn=1 op=1 RESULT tag=105 err=68 text=
conn=1 op=2 SRCH base="dc=altamente, dc=com" scope=2
filter="(&(objectClass=qmai
lUser)(uid=postmaster))"
ber_flush: 14 bytes to sd 9
conn=1 op=2 SEARCH RESULT tag=101 err=0 text=
conn=1 op=3 SRCH base="dc=altamente, dc=com" scope=2
filter="(&(objectClass=qmai
lUser)(uid=postmaster))"
ber_flush: 14 bytes to sd 9
conn=1 op=4 ADD dn="UID=POSTMASTER,DC=ALTAMENTE,DC=COM"
ber_flush: 38 bytes to sd 9
conn=1 op=4 RESULT tag=105 err=17 text=attribute type undefined
conn=1 op=5 UNBIND
conn=1 op=3 SEARCH RESULT tag=101 err=0 text=
conn=-1 fd=9 closed

Hope this helps to get it all going again. I'm not any sort of a
programmer but I can run commands
and pass on data dumps.

Philip Wall

Ken Jones wrote:
> 
> Hi Philip,
> 
> I just posted a new development release that compiles with the
> latest stable ldap release 2.0.11. I was able to get it to
> compile correctly but I did not test it running since I do
> not know how to setup the ldap server :)
> 
> Here is the link to download it directly.
> http://www.inter7.com/vpopmail/vpopmail-4.10.11.tar.gz
> 
> Please let me know if it works for you.
> 
> What would really be handy is if you or some ldap folks
> could write a README.ldap that we could include in the
> release. With a step by step walk through of how to
> get an ldap server running correctly with vpopmail.
> Starting with compiling the ldap code to running the
> first vadddomain.
> 
> Ken Jones
> 
> Philip Wall writes:
> 
> > I have been trying to get Vpopmail to work with LDAP. I've tried
> > OpenLDAP 2.0.9 and I get several errors when compiling Vpopmail.
> > I then switched back to OpenLDAP 1.2.11. Vpopmail then compiles with the
> > following warnings.
> >
> > gcc -I. -I/usr/local/include      -g -O2 -Wall -c vauth.c
> > vauth.c: In function `vauth_getpw':
> > vauth.c:79: warning: too many arguments for format
> > vauth.c: In function `vauth_getall':
> > vauth.c:306: warning: too many arguments for format
> > vauth.c: In function `vauth_adddomain':
> > vauth.c:557: warning: too many arguments for format
> > vauth.c: In function `vauth_deldomain':
> > vauth.c:604: warning: too many arguments for format
> >
> > I get the same warnings with Vpopmail 4.9.10 and Vpopmail 4.10.7.
> > This is using a basic configure line of ./configure --enable-ldap=y
> >
> > Once I compile with the above warnings I install it and run vadddomain
> > test.com, it produces the following error after I enter the password for
> > postmaster,
> > vadddomain: sockbuf.c:383: ber_int_sb_write: Assertion `sb->sb_iod !=
> > ((void *)0
> > )' failed.
> > Aborted
> >
> > It does create the test.com directory in the domains directory but
> > authencation fails.
> > vdeldomain fails with the above error as well.
> > So to me it appears LDAP auth is broke. Is there a maintainer for the
> > LDAP code or someone
> > that knows enough about it and C to be able to help me make the thing
> > work?
> >
> > Philip Wall
>

Reply via email to