[vchkpw] [Fwd: [qmr] vpopmail with LDAP]

2005-10-28 Thread Edy Sulai
Hi,

I'm trying to change vpopmail (currently with mysql backend) with LDAP
support.

vpopmail do all the authentication works for email transaction.

Vpopmail version 5.4.9.
Openldap 2.3.4 with sasl
OS : FreeBSD 4.10

untar-ed the source and edited the vldap.h file.

then : ./configure --enable-auth-module=ldap
completed without problem.

when make, i got these warnings and errors :

vauth.c: In function `vauth_getpw':
vauth.c:119: warning: implicit declaration of function `ldap_search_s'
vauth.c:126: warning: implicit declaration of function `ldap_perror'
vauth.c:153: warning: implicit declaration of function `ldap_get_values'
vauth.c:153: warning: assignment makes pointer from integer without a cast
vauth.c:186: warning: implicit declaration of function `ldap_value_free'
vauth.c:229: warning: assignment makes pointer from integer without a cast
vauth.c:242: warning: assignment makes pointer from integer without a cast
vauth.c:259: warning: assignment makes pointer from integer without a cast
vauth.c:271: warning: assignment makes pointer from integer without a cast
vauth.c:283: warning: assignment makes pointer from integer without a cast
vauth.c:292: warning: assignment makes pointer from integer without a cast
vauth.c:301: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_getall':
vauth.c:373: warning: implicit declaration of function `ldap_sort_entries'
vauth.c:388: warning: assignment makes pointer from integer without a cast
vauth.c:410: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_adduser':
vauth.c:578: warning: implicit declaration of function `ldap_add_s'
vauth.c: In function `vauth_deldomain':
vauth.c:708: warning: implicit declaration of function `ldap_delete_s'
vauth.c: In function `vauth_setpw':
vauth.c:891: warning: implicit declaration of function `ldap_modify_s'
vauth.c: In function `vclose':
vauth.c:914: warning: implicit declaration of function `ldap_unbind_s'
vauth.c: In function `ldap_connect':
vauth.c:1339: warning: implicit declaration of function `ldap_init'
vauth.c:1339: warning: assignment makes pointer from integer without a
cast vauth.c:1349: warning: implicit declaration of function
`ldap_simple_bind_s' gcc -I. -I/usr/local/include -I. -I. -I.  -g -O2
-Wall -c `test -f 'file_lock.c' || echo './'`file_lock.c
gcc -I. -I/usr/local/include -I. -I. -I.  -g -O2 -Wall -c `test -f
'vpalias.c' || echo './'`vpalias.c
gcc -I. -I/usr/local/include -I. -I. -I.  -g -O2 -Wall -c `test -f
'seek.c' || echo './'`seek.c
gcc -I. -I/usr/local/include -I. -I. -I.  -g -O2 -Wall -c `test -f
'vlimits.c' || echo './'`vlimits.c
gcc -I. -I/usr/local/include -I. -I. -I.  -g -O2 -Wall -c `test -f
'maildirquota.c' || echo './'`maildirquota.c
rm -f libvpopmail.a
ar cru libvpopmail.a vpopmail.o md5.o bigdir.o  vauth.o file_lock.o
vpalias.o  seek.o vlimits.o maildirquota.o cdb/*.o
ranlib libvpopmail.a
gcc -I. -I/usr/local/include -I. -I. -I.  -g -O2 -Wall -c `test -f
'vchkpw.c' || echo './'`vchkpw.c
gcc -I. -I/usr/local/include -I. -I. -I.  -g -O2 -Wall -c `test -f
'hmac_md5.c' || echo './'`hmac_md5.c
gcc  -g -O2 -Wall   -o vchkpw  vchkpw.o md5.o hmac_md5.o libvpopmail.a
-L/usr/local/lib -lldap -llber -lresolv -lcrypt
/usr/libexec/elf/ld: cannot find -lresolv


what is this lresolv? As i recall, there were no library called libresolv,
isn't it? it only exists on Linux type OS, as opposed to *BSD.
how would i go to fix this library error?


also, is it safe to ignore those warnings? looks like those warnings might
break vpopmail.


any help will be greatly appreciated.

thanks

-- 
Edy Sulai
IT Coordinator
Bunda Mulia Australian International School
Jl. Lodan Raya no. 2
Ancol, Jakarta Utara 14430
Indonesia
Tel  : +62-21-690-9742
Fax  : +62-21-690-2768
Web  : http://www.bmais.or.id
Email: [EMAIL PROTECTED]



Re: [vchkpw] vpopmail + ldap problem

2006-03-16 Thread Edy Sulai
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You much fill out the sn field because in qmailUser object, sn is
required attribute. Make sure each object has their sn entry.

I had vpopmail setup with ldap before, but that was quite a long time
ago. As I remembered, a patch to vpopmail source was required. I'm not
sure on newer vpopmail version.


Edy

Oliver A. Rojo wrote:
 Im having a problem with integrating vpopmail with ldap. I've already
 installed everything...
 
 What I did:
 
 1. I set these options on vldap.h before compile
 #define VLDAP_SERVER localhost
 #define VLDAP_PORT LDAP_PORT
 #define VLDAP_USER cn=vpopmailuser, o=vpopmail
 #define VLDAP_PASSWORD vpoppasswd
 #define VLDAP_BASEDN o=vpopmail
 
 2. My compile options
 --enable-auth-module=ldap
 
 3. Copied the file slapd.conf and qmailUser.schema from the vpopmail
 ldap directory to ldap etc/ and schema/ directory
 4. Successful creation of vpopmail database
 ldapadd -f vpopmail.ldif -x -w vpoppasswd -D'cn=vpopmailuser,o=vpopmail'
 
 The problem is when I add a virtual domain
 
 /home/vpopmail/bin/vadddomain mydomain.com
 
 I get an error saying:
 
 Error: Object class violation (65)
additional info: object class 'qmailUser' requires attribute 'sn'
 Failed while attempting to add user to auth backend
 Error: (vadduser) no auth connection
 
 What seems to be the problem here? Did I missed something?
 
 Please help!
 
 Thanks!
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEGiR0zkzx2xIRtA0RAlicAJ0Y/YP5ReSMqzNtof8LEapTfhdJ/gCgj9EY
SFhwQEj7PVvsAnuQjJsXulQ=
=CLJJ
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail + ldap problem

2006-03-19 Thread Edy Sulai
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Easiest way to edit ldap object is through a GUI client, ie:
phpldapadmin, ldapadministrator, etc. search for ldap client, you should
get quite a lot of option. I use JExplorer myself.
or you could do it by command line with ldapmodify command.

And for editing schema file, it's quite complicated considering the tree
structure and whole standard thing. I wouldn't recommend messing the
schema unless you really know what you are doing.
as Matheau pointed out, vpopmail schema file could be outdated.

correct me if i'm wrong but i believed inter7 doesn't provide vpopmail
with ldap functionality. it's an add-on thing and plus ldap function was
made available only because a client of inter7 requested ldap function.
it would be a waste to left the code unused, so they made it available
but without any support whatsoever (unless you pay them to do it). So,
it's doesnot look pretty. you have to make it work on your own.
I did that before.
Look at other option, maybe qmail-ldap?
could work a lot better with enermous support/documentation.



Edy

Oliver A. Rojo wrote:
 Edy Sulai wrote:
 
 You much fill out the sn field because in qmailUser object, sn is
 required attribute. Make sure each object has their sn entry.
 
 I had vpopmail setup with ldap before, but that was quite a long time
 ago. As I remembered, a patch to vpopmail source was required. I'm not
 sure on newer vpopmail version.
 
 
 Edy
 
 Oliver A. Rojo wrote:
  
 
 Im having a problem with integrating vpopmail with ldap. I've already
 installed everything...

 What I did:

 1. I set these options on vldap.h before compile
 #define VLDAP_SERVER localhost
 #define VLDAP_PORT LDAP_PORT
 #define VLDAP_USER cn=vpopmailuser, o=vpopmail
 #define VLDAP_PASSWORD vpoppasswd
 #define VLDAP_BASEDN o=vpopmail

 2. My compile options
 --enable-auth-module=ldap

 3. Copied the file slapd.conf and qmailUser.schema from the vpopmail
 ldap directory to ldap etc/ and schema/ directory
 4. Successful creation of vpopmail database
 ldapadd -f vpopmail.ldif -x -w vpoppasswd -D'cn=vpopmailuser,o=vpopmail'

 The problem is when I add a virtual domain

 /home/vpopmail/bin/vadddomain mydomain.com

 I get an error saying:

 Error: Object class violation (65)
   additional info: object class 'qmailUser' requires attribute 'sn'
 Failed while attempting to add user to auth backend
 Error: (vadduser) no auth connection

 What seems to be the problem here? Did I missed something?

 Please help!

 Thanks!

   
 




 where will I fill out the 'sn' entry? is it on the schema files? im
 sorry im just a newbie openldap user.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEHgYFzkzx2xIRtA0RAlswAKCSi2vtL0DEWZuWqfhb0SzI4IXKGgCdE4/2
x74Dc0L8t1/7Zs4kRS+hphM=
=YVbk
-END PGP SIGNATURE-