(my first attempt appears not to have reached this list - I apologize if I
am posting
this twice...)
Anyone get passed this error? Here is information on what I have done so
far:
I. Setup OpenLDAP
---------------------------------
1.Created qmailUser.schema (btw - the IANA numbers are valid so feel free to
use them)
attributetype ( 1.3.6.1.4.1.8868.3.1.2
NAME 'qmailGID'
DESC 'qmail group id'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.8868.3.1.3
NAME 'qmailUID'
DESC 'qmail userid'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.8868.3.1.4
NAME 'qmaildomain'
DESC 'qmail Domain'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.8868.3.1.6
NAME 'mailQuota'
DESC 'qmail quota'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.8868.3.1.7
NAME 'mailMessageStore'
DESC 'qmail Store'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{100}
SINGLE-VALUE )
objectclass ( 1.3.6.1.4.1.8868.3.1
NAME 'qmailUser'
DESC 'qmail local mail recipient'
SUP ( top $ person $ organizationalPerson )
MAY ( qmailGID $ qmailUID $ qmaildomain $
mailQuota $ mailMessageStore $ name ) )
2. Updated slapd.conf to include /path/to/schemas/qmailUser.schema:
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/qmailUser.schema
# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
# Load dynamic backend modules:
# modulepath /usr/local/libexec/openldap
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=sebscape,dc=com"
#suffix "o=My Organization Name,c=US"
rootdn "cn=Manager,dc=sebscape,dc=com"
#rootdn "cn=Manager,o=My Organization Name,c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw mypassword
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory /usr/local/var/openldap-ldbm
# Indices to maintain
index objectClass eq
3. restarted slapd service
II. Configured vpopmail
----------------------------
1. ./configure --enable-ldap=y --enable-roaming-users=y --> no errors
reported
2. Modify vldap.h (note that I pre-created ou=users while setting up
openLDAP):
#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=sebscape, dc=com"
#define VLDAP_PASSWORD "mypassword"
#ifdef OLD_VLDAP
#define VLDAP_BASEDN "ou=users, dc=sebscape, dc=com"
#else
#define VLDAP_BASEDN "ou=%s, ou=users, dc=sebscape, dc=com"
#endif
static char *vldap_attrs[] = {
"name",
"uid",
"qmailGID",
"qmailUID",
"qmaildomain",
"userPassword",
"mailQuota",
"mailMessageStore",
NULL
};
#endif
3. make ---> no errors reported
4. make install-strip --->no errors reported
Problem:
I get the "unable to chdir" error as others report.
My LDAP IS updated so I now find ou=mydomain.com, ou=users, dc=sebscape,
dc=com.
There are no users under my new ou.
Anyone want to repeat my steps to confirm - or better yet, find the cause
of - my error?!
TIA,
Steve B.
----- Original Message -----
> > From: <[EMAIL PROTECTED]>
> > To: "Xiao Hua Huang" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Thursday, August 30, 2001 11:19 AM
> > Subject: Re: "Unable to chdir to vpopmail/usrs diretory" error in LDAP
> > module
> >
> >
> > > Here's a sample LDIF from the development stage:
> > >
> > > dn: o=Inter7
> > > o: Inter7
> > > objectclass: organization
> > >
> > > dn: ou=test.com, o=Inter7
> > > ou: test.com
> > > objectclass: organizationalUnit
> > >
> > > dn: uid=test2, ou=test.com, o=Inter7
> > > mailMessageStore: directory
> > > uid: test2
> > > userPassword: {crypt}password
> > > objectclass: qmailUser
> > >
> > > That creates o=Inter7,ou=test.com with a username of [EMAIL PROTECTED]
> > > and a hash test of 'password'.
> > >
> > > All you need to create is the first dn of o=Inter7.
> > > Make sure your vldap.h matches your schema.
> > >
> > > Also, be sure you have at least the following variables in your
> > > qmailUser schema..
> > >
> > > objectclass qmailUser
> > > requires
> > > objectClass,
> > > uid,
> > > qmailGID,
> > > qmailUID,
> > > qmaildomain,
> > > userPassword,
> > > mailQuota,
> > > mailMessageStore,
> > > name
> > >
> > >
> > > For slapd, you'll want these configurations in your slapd.conf
> > > suffix "o=Inter7"
> > > rootdn "cn=Manager, o=Inter7"
> > > rootpw password
> > >
> > > ..and be sure they match up to vldap.h again.
> > >
> > > Hope this all helps. I know it's a lot.
> > >
> > > Xiao Hua Huang wrote:
> > > >
> > > > Thanks for your reply.
> > > > But how can you create?
> > > > Could you get me some sample?
> > > >
> > > > Thanks
> > > > Bill
> > > >
> > > >
> > > > vol
> > > > Sent by: vol To: Xiao Hua Huang
> > > >
<[EMAIL PROTECTED]>
> > > > cc: [EMAIL PROTECTED],
> Ken
> > Jones
> > > > 2001-08-31 <[EMAIL PROTECTED]>
> > > > 01:12 Subject: Re: "Unable to
> > chdir to
> > > > vpopmail/usrs diretory"
error
> > in LDAP module
> > > >
> > > >
> > > > You most likely need to create your manager user, and setup
> > > > the schema inside the database that you'll be using.
> > > >
> > > > The LDAP module does not do this itself.
> > > >
> > > > Xiao Hua Huang wrote:
> > > > >
> > > > > Hi All:
> > > > > Just now I installed vpopmail-4.10.35 + openLDAP-2.0.7 just
> following
> > the
> > > > > README.ldap in the vpopmail tar file.
> > > > > Everything looks OK but when I run:
> > > > > vadddomain test.com
> > > > >
> > > > > It is said ""Unable to chdir to vpopmail/usrs diretory"
> > > > >
> > > > > Anyone have idea about this problem???
> > > > >
> > > > > Thanks
> > > > > Bill
> > > >
> > > > --
> > > > [EMAIL PROTECTED]
> > > > Inter7 Internet Technologies, Inc.
> > > > www.inter7.coom - 847-492-0470
> > > > Prices at http://www.inter7.com/prices
> > >
> > > --
> > > [EMAIL PROTECTED]
> > > Inter7 Internet Technologies, Inc.
> > > www.inter7.coom - 847-492-0470
> > > Prices at http://www.inter7.com/prices
> >
>