2 messages in net.sourceforge.lists.courier-users[courier-users] New installation to c...
FromSent OnAttachments
Yuri VenkovFeb 27, 2007 3:34 am 
Gordon MessmerMar 1, 2007 10:18 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] New installation to courier.Actions...
From:Yuri Venkov (yuri@gmail.com)
Date:Feb 27, 2007 3:34:01 am
List:net.sourceforge.lists.courier-users

Hello everybody,

I try to install courier for first time, but have run into a configuration problem that someone might be able to guide me with.

I read the install documentation, and make some decisions, like I want to start with ldap backend, and run a straight courier setup for pop, smtp, imap, webmail.

I start by downloading and building the latest stable version of Berkley DB for ldap I then download and build latest stable version of Openldap I install OpenSSL from RPM I build Courier Authlib from source and install.

Next I want to configure LDAP. I configure slapd with base DN I configure slapd with root DN I configure root DN with password using slappasswd

I then copy authldap.schema from build directory to where all other ldap schemas are, and I include it in slapd.conf

It says it depends on nis.schema and cosine.schema, so I include those into slapd.conf also

I then create an LDIF file to create users, the template I worked from I got from google:

dn: uid=csahut,ou=people,dc=domain,dc=ch structuralObjectClass: inetOrgPerson objectClass: top objectClass: inetOrgPerson objectClass: CourierMailAlias objectClass: CourierMailAccount uid: csahut sn: Sahut cn: Christophe Sahut userPassword: {SHA}XmW4LNbGoWaSM4VaMExxRU1EpWU= homeDirectory: /var/spool/mail/csahut mail: csa@domain.ch maildrop: csa@domain.ch mailbox: /var/spool/mail/csahut/Maildir quota: 51200000S

When I try to add users with this, I get problems.

I resolved that the problem was with inetOrgPerson not being a "known" object class, so I include inetorgperson.schema into slapd.conf

Now I get error : ldap_add: Constraint violation (19) additional info: structuralObjectClass: no user modification allowed

But I check slapd, and there are no constraints on the root dn to add data to ldap.

If I remove the structural object from the ldif file I get error ldap_add: No such object (32)

I think I missing something very simple, but i can't for the life of me see whats Im doing wrong, have I got an incorrect definition for inetOrgPerson included?

Is it the LDIF structure that is wrong?

Any help much appreciated.

Yuri.