Re: vpopmail-4.9.10, OpenLDAP, and FreeBSD
Nope!! I ended up trashing the freebsd for two weeks. You just reminded me to reinstall slack or debian and test out qmail and vpopmail with the OpenLDAP module (with a recent stable version install of OpenLDAP). I might start on this today or tomorrow. I need it too very soon! Well, I am still sure you cannot install vpopmail with vpopmail auth module and use the user quotas at the same time. The binaries compile and install, but when ran, _COREDUMP_ I haven't pinned out the problem yet, but I am trying out the plain old pop+ldap first. (By the way I got qmailadmin and sqwebmail also compiled and ran fine on top of Qmail+Vpopmail+OpenLDAP all doing LDAP authentication through vchkpw (with some Makefile modifications and specific configure options and minor code mods (that was on freebsd4.2). If it worked for me, well, since I always document things I do (so I don't forget), I'd probably post it on the mailing list :) Cheers!! --manip __ The only secure computer is one that's unplugged, locked in a safe, and buried 20 feet under the ground in a secret location... and i'm not even too sure about that one--Dennis Huges, FBI. From: Bill Huang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: vpopmail-4.9.10, OpenLDAP, and FreeBSD Date: Tue, 05 Jun 2001 00:13:04 +0800 Hi Guy: Did you get any solution for the vpopmail + OpenLDAP + qmail ? I really need it. Thanks a lot for your help Bill _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: vpopmail-4.9.10, OpenLDAP, and FreeBSD
I finally got vpopmail to compile with --enable-ldap=y set and vadddomain doesn't core dump any more. That is after i took out --enable-hardquota=xxx. If i configure with --enable-hardquota=xxx i can compile fine with make; make install. But once installed, /usr/home/vpopmail/bin/vadddoman test.com would coredump after entering and verifying the postmaster password. Now i am into another problem, Cannot authenticate! I set the --enable-default-domain=domain.com but cannot authenticate as either "postmaster" or "[EMAIL PROTECTED]". Here is the relevant part of vldap.h: ---snip--- #ifndef VPOPMAIL_LDAP_H #define VPOPMAIL_LDAP_H #undef OLD_VLDAP #define VLDAP_SERVER "localhost" #define VLDAP_PORT 389 #define VLDAP_USER "cn=Manager,dc=domain,dc=com" #define VLDAP_PASSWORD "secret" #ifdef OLD_VLDAP #define VLDAP_BASEDN "ou=Subs, o=Inter7" #else #define VLDAP_BASEDN "ou=%s, o=domain" #endif ---snip--- And here is the relevant part of slapd.conf ---snip--- include /usr/local/etc/openldap/slapd.at.conf include /usr/local/etc/openldap/slapd.oc.conf schemacheck off pidfile /var/run/slapd.pid argsfile/var/run/slapd.args databaseldbm suffix "dc=domain,dc=com" rootdn "cn=Manager,dc=domain,dc=com" rootpw secret directory /var/run/openldap-ldbm ---snip--- Of course i didn't put 'domain' and 'secret'. I am just demonstrating that the fields match in both vldap.h and slapd.h (and yes i restarted slapd after doing the changes then started qpop+vchkpw as I normally did with any other setup: eg. cdb, mysql, etc.) If you know a solution or have a suggestion, please email me. Thanks --manip _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: vpopmail-4.9.10, OpenLDAP, and FreeBSD (Fw)
From: "Chaz Tran" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: vpopmail-4.9.10, OpenLDAP, and FreeBSD Date: Sun, 15 Apr 2001 00:33:38 -0700 If you don't use "--enable-hardquota=500", it should work!!! I get the same core dumped problem w/ vpopmail-4.9.10, OpenLDAP, and FreeBSD when using the "--enable-hardquota" option. Please let me know if you find a way to make it work. Chaz Hrm, interesting. Ken? Any suggestions? Is it a bug you think in the OpenLDAP module in vpopmail? Have you tested the 4.9.10 on linux with openldap and hardquota? Let me know.. --manip _ Get your FREE download of MSN Explorer at http://explorer.msn.com
vpopmail-4.9.10, OpenLDAP, and FreeBSD
Hi, I am having problems compiling vpopmail w/ ldap support. I am running FreeBSD 4.2-Stable. Installed OpenLDAP-1.2.11 from ports. Configured vpopmail like so: ./configure --enable-roaming-users=y \ --enable-ldap=y \ --enable-relay-clear-minutes=360 \ --enable-hardquota=500 Configure doesn't complain and creates Makefile and config.h now when i edited vldap.h and made sure that vauth.c points to vldap.c Then I do make and I get the following errors: vauth.c: In Function 'vauth_adduser': vauth.c:445: warning: format argument is a pointer (arg 3) vauth.c: At top level: vauth.c:842: conflicting types for 'vwrite_dir_control' vauth.h:81: previous decalaration of 'vwrite_dir_control' *** Error code 1 Stop in /root/src/vpopmail-4.9.10 *** Error code 1 etc. From looking at the Makefile, I see: auth_inc = -I/usr/local/include auth_libs = -L/usr/local/lib -lldap -llber auth_lib = Do i need to modify something to get it to compile? Thanks.. --manip _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: vpopmail-4.9.10, OpenLDAP, and FreeBSD
I cvsup'ed my /usr/ports (from the default 4.2-Stable ports tree) then I cd in /usr/ports/mail/vpopmail in that directory there is a Makefile I edited the Makefile and added the --enable-ldap=y and --enable-roaming-users=y and --enable-hardquota=500 to the configure options, then i did make, it compiled ok. Now if i do ls -l /usr/ports/mail/vpopmail/work/vpopmail-4.9.8/vauth.c i see that is symbolically linked to ldap.c Compile went ok. then i did make install. I will test the installation more thourougly, but I wonder why I couldn't compile from clean 4.9.10 source tarball. (are there any patches needed to get vpopmail+ldap running on FreeBSD??) Thanks! _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: vpopmail-4.9.10, OpenLDAP, and FreeBSD
Well after a hectic day trying to get freebsd+vpopmail+openldap to work, and have finally successfully compiled all from source: bash-2.04# ./vadddomain test.com Please enter password for postmaster: enter password again: Segmentation fault (core dumped) bash-2.04# bash-2.04# pwd /usr/home/vpopmail/domains/test.com bash-2.04# ls -l total 427 -rw--- 1 vpopmail vchkpw 34 Apr 14 15:29 .dir-control -rw--- 1 vpopmail vchkpw 59 Apr 14 15:29 .qmail-default drwx-- 3 vpopmail vchkpw 512 Apr 14 15:29 postmaster -rw--- 1 root vchkpw 425984 Apr 14 15:29 vadddomain.core bash-2.04# I am depressed already. Someone got a hint? Any one had success with Open/Free BSD w/ Qmail+Vpopmail(w/ OpenLDAP module) ? ANy help would be greatly appreciated :) _ Get your FREE download of MSN Explorer at http://explorer.msn.com