Re: [vchkpw] Problem adding accounts
On Viernes 07 Agosto 2009 12:09:51 wayne escribió: > Check your processes and see if LDAP is running. > # ps aux | grep ldap openldap 1413 0.3 0.0 135868 3456 ?Ssl Jul05 164:13 /usr/sbin/slapd -g openldap -u openldap -f /etc/openldap/slapd.conf !DSPAM:4a7bff8132717549968127!
Re: [vchkpw] Problem adding accounts
Check your processes and see if LDAP is running. Benon Fuertes wrote: I've discover something else related to ldap In this file: /usr/home/root/software/qmail/vpopmail-5.4.18/vldap.h I have some parameters to connect with ldap: #define VLDAP_SERVER "localhost" #define VLDAP_PORT LDAP_PORT #define VLDAP_USER "cn=admin,dc=somedomain,dc=com" #define VLDAP_PASSWORD "somePassword" #define VLDAP_BASEDN "ou=people,dc=somedomain,dc=com" But I don't know what to change or how to tell vpopmail to authenticate with this. !DSPAM:4a7bfd7632711417620476!
Re: [vchkpw] Problem adding accounts
On Viernes 07 Agosto 2009 10:29:52 Bob Hutchinson escribió: > On Friday 07 August 2009, Benon Fuertes wrote: > > On Viernes 07 Agosto 2009 09:58:02 Bob Hutchinson escribió: > > > On Friday 07 August 2009, Benon Fuertes wrote: > > > > >> It doesn't show any version. I use: > > > > >> > > > > >> /home/vpopmail/bin/vadduser -v u...@domain password > > > > > > > > > >Do you happen to know offhand what version it is, or an estimate of > > > > > about how long ago > > > > >you installed vpopmail? > > > > > > > > I'd say it was installed about 3 years ago, but I don't know if it > > > > could have been updated since then. > > > > > > have a look inside /home/vpopmail/include/vpopmail_config.h, this will > > > tell you more > > > > Ok, the version of vpopmail is: 5.4.18 > > It will also tell you which auth mechanism it was compiled with > eg > #define USE_MYSQL 1 > or > #define USE_CDB 1 /* "" */ /* #undef USE_CDB */ /* "" */ #define USE_LDAP 1 /* "" */ /* #undef USE_MYSQL */ It uses LDAP, we're making some progress :) !DSPAM:4a7be6fe32711435012119!
Re: [vchkpw] Problem adding accounts
On Friday 07 August 2009, Benon Fuertes wrote: > On Viernes 07 Agosto 2009 09:58:02 Bob Hutchinson escribió: > > On Friday 07 August 2009, Benon Fuertes wrote: > > > >> It doesn't show any version. I use: > > > >> > > > >> /home/vpopmail/bin/vadduser -v u...@domain password > > > > > > > >Do you happen to know offhand what version it is, or an estimate of > > > > about how long ago > > > >you installed vpopmail? > > > > > > I'd say it was installed about 3 years ago, but I don't know if it > > > could have been updated since then. > > > > have a look inside /home/vpopmail/include/vpopmail_config.h, this will > > tell you more > > Ok, the version of vpopmail is: 5.4.18 It will also tell you which auth mechanism it was compiled with eg #define USE_MYSQL 1 or #define USE_CDB 1 > > > -- - Bob Hutchinson Midwales dot com - !DSPAM:4a7be60432711177020819!
Re: [vchkpw] Problem adding accounts
On Viernes 07 Agosto 2009 09:58:02 Bob Hutchinson escribió: > On Friday 07 August 2009, Benon Fuertes wrote: > > >> It doesn't show any version. I use: > > >> > > >> /home/vpopmail/bin/vadduser -v u...@domain password > > > > > >Do you happen to know offhand what version it is, or an estimate of > > > about how long ago > > >you installed vpopmail? > > > > I'd say it was installed about 3 years ago, but I don't know if it could > > have been updated since then. > > have a look inside /home/vpopmail/include/vpopmail_config.h, this will tell > you more Ok, the version of vpopmail is: 5.4.18 !DSPAM:4a7be01032717030915942!
Re: [vchkpw] Problem adding accounts
On Friday 07 August 2009, Benon Fuertes wrote: > >> It doesn't show any version. I use: > >> > >> /home/vpopmail/bin/vadduser -v u...@domain password > > > >Do you happen to know offhand what version it is, or an estimate of about > > how long ago > >you installed vpopmail? > > I'd say it was installed about 3 years ago, but I don't know if it could > have been updated since then. have a look inside /home/vpopmail/include/vpopmail_config.h, this will tell you more > > > > -- - Bob Hutchinson Midwales dot com - !DSPAM:4a7bde9032715079012401!
Re: [vchkpw] Problem adding accounts
El vie, 07-08-2009 a las 02:33 +0800, Wouter van der Schagt escribió: > > A lot has been shown at the console, I'm gonna paste some of it: > > I think it is missing the last lines. Can you run it without the -f ? and > paste the output again? > Lots of lines were displayed too, but I'm gonna paste the last ones. Here it goes: open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents(4, /* 3 entries */, 4096) = 52 stat64("Maildir", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 chown32("Maildir", 89, 89) = 0 chdir("Maildir")= 0 open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 5 fstat64(5, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 getdents(5, /* 5 entries */, 4096) = 80 stat64("new", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 chown32("new", 89, 89) = 0 chdir("new")= 0 open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6 fstat64(6, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 getdents(6, /* 2 entries */, 4096) = 32 getdents(6, /* 0 entries */, 4096) = 0 close(6)= 0 chdir("..") = 0 stat64("cur", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 chown32("cur", 89, 89) = 0 chdir("cur")= 0 open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6 fstat64(6, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 getdents(6, /* 2 entries */, 4096) = 32 getdents(6, /* 0 entries */, 4096) = 0 close(6)= 0 chdir("..") = 0 stat64("tmp", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 chown32("tmp", 89, 89) = 0 chdir("tmp")= 0 open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6 fstat64(6, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 getdents(6, /* 2 entries */, 4096) = 32 getdents(6, /* 0 entries */, 4096) = 0 close(6)= 0 chdir("..") = 0 getdents(5, /* 0 entries */, 4096) = 0 close(5)= 0 chdir("..") = 0 getdents(4, /* 0 entries */, 4096) = 0 close(4)= 0 chdir("..") = 0 geteuid32() = 0 time(NULL) = 1249591423 write(3, "0\201\307\2\1\3c\201\301\4'ou=domain,ou=gente"..., 202) = 202 select(1024, [3], [], NULL, NULL) = 1 (in [3]) read(3, "0\f\2\1\3e\7\n"..., 8) = 8 read(3, "\1\0\4\0\4\0"..., 6) = 6 time(NULL) = 1249591423 chdir("/usr/home/vpopmail/domains/domain") = 0 time(NULL) = 1249591423 time(NULL) = 1249591423 write(3, "0\202\1O\2\1\4h\202\1H\0048uid=user, ou="..., 339) = 339 select(1024, [3], [], NULL, NULL) = 1 (in [3]) read(3, "0\f\2\1\4i\7\n"..., 8) = 8 read(3, "\1P\4\0\4\0"..., 6)= 6 time(NULL) = 1249591423 write(2, "Error: Internal (implementation s"..., 53Error: Internal (implementation specific) error (80) ) = 53 write(2, "Failed while attempting to add us"..., 52Failed while attempting to add user to auth backend ) = 52 chdir("/home/vpopmail/domains/domain") = 0 lstat64("user", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 chdir("user")= 0 open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4 fstat64(4, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 getdents(4, /* 3 entries */, 4096) = 52 stat64("Maildir", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 lstat64("Maildir", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 chdir("Maildir")= 0 open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 5 fstat64(5, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 getdents(5, /* 5 entries */, 4096) = 80 stat64("new", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 lstat64("new", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 chdir("new")= 0 open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 6 fstat64(6, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 getdents(6, /* 2 entries */, 4096) = 32 getdents(6, /* 0 entries */, 4096) = 0 close(6)= 0 chdir("..") = 0 rmdir("new")= 0 stat64("cur", {st
Re: [vchkpw] Problem adding accounts
A lot has been shown at the console, I'm gonna paste some of it: I think it is missing the last lines. Can you run it without the -f ? and paste the output again? Sincerely, - Wouter van der Schagt !DSPAM:4a7b21e23271369715!
Re: [vchkpw] Problem adding accounts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benón Fuertes wrote: > El jue, 06-08-2009 a las 12:15 -0500, Matt Brookings escribió: > Benón Fuertes wrote: server# /var/vpopmail/bin/vadduser u...@domain password Error: Internal (implementation specific) error (80) Failed while attempting to add user to auth backend Error: no authentication database connection > Sounds like it can't talk to the database. What version of vpopmail is this? >~vpopmail/bin/vadduser -v > > >> It doesn't show any version. I use: > >> /home/vpopmail/bin/vadduser -v u...@domain password Do you happen to know offhand what version it is, or an estimate of about how long ago you installed vpopmail? - -- /* Matt BrookingsGnuPG Key FAE0672C Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkp7GzUACgkQIwet2/rgZyztMACdGKHorr4e2WOMEnkM1nis1GP2 h4wAnRnv7DlNX/KSjYjeCLDd7Ry0IYhJ =WoaC -END PGP SIGNATURE-
Re: [vchkpw] Problem adding accounts
El vie, 07-08-2009 a las 01:31 +0800, Wouter van der Schagt escribió: > > server# /var/vpopmail/bin/vadduser u...@domain password > > Error: Internal (implementation specific) error (80) > > Failed while attempting to add user to auth backend > > Error: no authentication database connection > > There is probably a more descriptive error message in the logfiles. What > does /var/log/syslog say? > Nothing at all, it's empty so I guess it doesn't use syslog. > Or if you have strace installed, you can run it with strace and see what > comes up. It can usually give you an idea about what is wrong: > > strace -f /var/vpopmail/bin/vadduser u...@domain password > A lot has been shown at the console, I'm gonna paste some of it: #strace -f /var/vpopmail/bin/vadduser u...@domain password execve("/var/vpopmail/bin/vadduser", ["/var/vpopmail/bin/vadduser", "u...@domain", "password"], [/* 15 vars */]) = 0 brk(0) = 0x8059ac8 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fcf000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=38163, ...}) = 0 mmap2(NULL, 38163, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fc5000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libldap_r.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\240\0\0004 \0\0\"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=217840, ...}) = 0 mmap2(NULL, 216860, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f9 mmap2(0xb7fc4000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x34) = 0xb7fc4000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/liblber.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340#\0\0004\0\0 \0X"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=47128, ...}) = 0 mmap2(NULL, 46128, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f84000 mmap2(0xb7f8f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0xb) = 0xb7f8f000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libresolv.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`!\0\0004\0\0\0 \310"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=63312, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f83000 mmap2(NULL, 75972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f7 mmap2(0xb7f7f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0xe) = 0xb7f7f000 mmap2(0xb7f81000, 6340, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0xb7f81000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libcrypt.so.1", O_RDONLY)= 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \7\0\0004\0\0 \0008"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=38296, ...}) = 0 mmap2(NULL, 201052, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f3e000 mmap2(0xb7f47000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x8) = 0xb7f47000 mmap2(0xb7f49000, 155996, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0xb7f49000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libc.so.6", O_RDONLY)= 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260e\1\0004\0\0 \0t"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1294572, ...}) = 0 mmap2(NULL, 1300080, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e0 mmap2(0xb7f38000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x138) = 0xb7f38000 mmap2(0xb7f3b000, 9840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0xb7f3b000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0 \0H"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=9680, ...}) = 0 mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dfc000 mmap2(0xb7dfe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x1) = 0xb7dfe000 close(3)= 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib
Re: [vchkpw] Problem adding accounts
El jue, 06-08-2009 a las 12:15 -0500, Matt Brookings escribió: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Benón Fuertes wrote: > > server# /var/vpopmail/bin/vadduser u...@domain password > > Error: Internal (implementation specific) error (80) > > Failed while attempting to add user to auth backend > > Error: no authentication database connection > > Sounds like it can't talk to the database. What version of vpopmail is this? >~vpopmail/bin/vadduser -v > It doesn't show any version. I use: /home/vpopmail/bin/vadduser -v u...@domain password and I get: version: Error: Internal (implementation specific) error (80) Failed while attempting to add user to auth backend Error: no authentication database connection No information at all. > > I believe I haven't installed new software that can be causing this. > > There is an openldap server but was installed and running before I > > noticed this behavior. Of course, I'm trying to execute this command as > > root. > > The owner of qmail files is "vpopmail" who belongs to the group > > "vchkpw". > > What authentication backend are you using? LDAP? I think it's LDAP. I say I think because I didn't set up the server in the first place, and therefore I' not completely sure. But I've checked the databases of mysql server and haven't found anything related to mail. > - -- > /* > Matt BrookingsGnuPG Key FAE0672C > Software developer Systems technician > Inter7 Internet Technologies, Inc. (815)776-9465 > */ > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkp7D6wACgkQIwet2/rgZyzwTACeIUavt1TaQTzB4Ow+x/9YM9oS > 3bMAmwVtohLNVhrF4IEP2nvoGdMYtu+X > =u2Gz > -END PGP SIGNATURE- -- Benón Fuertes Diaple S.L. Tfno: 902 94 77 66 Ext: 111 Fax: 902 94 77 65 !DSPAM:4a7b17fc32711667011234!
Re: [vchkpw] Problem adding accounts
server# /var/vpopmail/bin/vadduser u...@domain password Error: Internal (implementation specific) error (80) Failed while attempting to add user to auth backend Error: no authentication database connection There is probably a more descriptive error message in the logfiles. What does /var/log/syslog say? Or if you have strace installed, you can run it with strace and see what comes up. It can usually give you an idea about what is wrong: strace -f /var/vpopmail/bin/vadduser u...@domain password It sounds to me it is either a permission error, or an error relating to the backend, which backend are you using? Sincerely, - Wouter van der Schagt !DSPAM:4a7b138232711419515770!
Re: [vchkpw] Problem adding accounts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benón Fuertes wrote: > server# /var/vpopmail/bin/vadduser u...@domain password > Error: Internal (implementation specific) error (80) > Failed while attempting to add user to auth backend > Error: no authentication database connection Sounds like it can't talk to the database. What version of vpopmail is this? ~vpopmail/bin/vadduser -v > I believe I haven't installed new software that can be causing this. > There is an openldap server but was installed and running before I > noticed this behavior. Of course, I'm trying to execute this command as > root. > The owner of qmail files is "vpopmail" who belongs to the group > "vchkpw". What authentication backend are you using? LDAP? - -- /* Matt BrookingsGnuPG Key FAE0672C Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkp7D6wACgkQIwet2/rgZyzwTACeIUavt1TaQTzB4Ow+x/9YM9oS 3bMAmwVtohLNVhrF4IEP2nvoGdMYtu+X =u2Gz -END PGP SIGNATURE-