Hello,

I have a few programs when I go to add a new domain :


        [EMAIL PROTECTED] vpopmail]# /home/vpopmail/bin/vadddomain domain.org
password
        Error: Invalid credentials (49)
        Error. Failed while attempting to add domain to auth backend
        Failed while attempting to delete domain from dir_control
        Error: no auth connection


The steps that I make to arrive this are:
*****************************************

I compile vpopmail with this options:

        [rootserver vpopmail-5.4.5]# ./configure --enable-logging=v
--enable-auth-module=ldap 

        [...]
                   vpopmail 5.4.5           
                    Current settings
        ---------------------------------------
        
        vpopmail directory = /home/vpopmail
                       uid = 89
                       gid = 89
             roaming users = OFF --disable-roaming-users (default)
         password learning = OFF --disable-learn-passwords (default)
             md5 passwords = ON  --enable-md5-passwords (default)
              file locking = ON  --enable-file-locking (default)
        vdelivermail fsync = OFF --disable-file-sync (default)
             make seekable = ON  --enable-make-seekable (default)
              clear passwd = ON  --enable-clear-passwd (default)
         user dir hashing  = ON  --enable-users-big-dir (default)
        address extensions = OFF --disable-qmail-ext (default)
                  ip alias = OFF --disable-ip-alias-domains (default)
             domain quotas = OFF --disable-domainquotas (default)
               auth module = ldap --enable-auth-module=ldap
                  auth inc = -I/usr/local/include
                  auth lib = -L/usr/local/lib -lldap -llber -lresolv
          system passwords = OFF --disable-passwd (default)
                pop syslog = log success and errors including passwords
                             --enable-logging=v
              auth logging = ON  --enable-auth-logging (default)




Obviusly then I do "make && make install-strip".
Now I start the OpenLDP server without errors with this sladp.conf:

        #
        include         /etc/openldap/schema/core.schema
        include         /etc/openldap/schema/qmailUser.schema
        schemacheck off

        pidfile         /var/run/slapd.pid
        argsfile        /var/run/slapd.args

        database        bdb
        suffix          "o=vpopmail"
        rootdn          "cn=vpopmailuser, o=vpopmail"
        rootpw          vpoppasswd
        directory       /var/lib/ldap
        index           objectClass             pres,eq
        index           cn,sn,uid               eq
        index           qmailUID,qmailGID   eq
        access to *
                by self write
                by dn="cn=vpopmailuser,o=vpopmail" write
                by * write


And the interface is listenning:
        Active Internet connections (servers and established)
        Proto Recv-Q Send-Q Local Address           Foreign Address        
State       PID/Program name   
        tcp        0      0 0.0.0.0:389             0.0.0.0:*              
LISTEN      27398/slapd         
        

I create the vpopmail DB in the ldap system and I make sure that the
vpopmail DB exists:
        [EMAIL PROTECTED] openldap]# ldapadd -f /var/lib/ldap/vpopmail.ldif -x -w
vpoppasswd -D'cn=vpopmailuser,o=vpopmail'
        adding new entry "o=vpopmail

All seems to be all right, but don't let me to add not any dommain as
you can see at the beginning. Also I have made a lot of tests changing
the vldap.h file from the vpopmail sources before doing configure and
make for all the night without positive results.

Any ideas and help are welcome.

Sebastian Shumari (Zmi)

Reply via email to