Rune Prytz Anderson said:
>
> Here are my questions.

If the following doesn't totally work, maybe include some lines from your
log file which shows LDAP and Courier-IMAP messages.  Try running openLDAP
with the log/debug turned on.

> I can't create a userPassword field. It says :objectClass violation.

Because you don't have an objectClass that allows userPassword.  Look at
the /etc/openldap/schema/*.schema files.  There should be a definition
of userPassword, and an objectClass called inetOrgPerson, which you need.
I have no idea what the qmailUser objectClass allows/requires.

> What is objectClass used for?

It says which attributes your entry _must_ have, and which you _may_ have.

> are objectClass nessesary?

Yes. Though one may be provided for you, should you be unable to provide
your own...

I'm not sure if there is a default objectClass, but it probably
wouldn't do what you need, anyway.  objectclass is like the "type" of
entry, where an entry can have many types.

> Have I got duplicate cn entries for my test user?

No, but there is a problem.  If you have a DN like
"cn=bob,ou=accounting,dc=bobco", then you must have a cn attribute
that is equal to "bob". Your cn is not equal to the cn in your dn, which
is your rdn. ;-)

> How would a ldif-file for the above sample look like?

Different.

partially:

dn: [EMAIL PROTECTED],ou=soyuz.df.lth.se,dc=ibkfinn
objectClass: inetorgperson
...other objectclasses...
cn: [EMAIL PROTECTED]
userpassword: ...stuff...
...other attributes ...

> How do I crypt the textsting I want to insert as userPassword?

Use the ldappasswd command line tool.

> here are my courier settings, the seems resonable I think:
>
> LDAP_BASEDN, LDAP_BINDDN and LDAP_BINDPW are the same as in my qmail
> config. They work there.
>
> LDAP_MAIL     mail
> LDAP_DOMAIN   soyuz.df.lth.se
> LDAP_GLOB_UID vmail (I've got a vmail user)
> LDAP_GLOB_GID vmail

You also have a vmail group in /etc/group?

> LDAP_HOMEDIR  mailMessageStore
>
> LDAP_MAILDIR  ./Maildir

This won't fly.  LDAP_MAILDIR must list an LDAP attribute name, not a
Unix path.  If ./Maildir works for you, don't specify this item in config.

> LDAP_FULLNAME   cn

More likely you mean sn.  Is this a valid authldaprc entry?  I don't
remember this one.

> LDAP_CRYPTPW    userPassword
>
> LDAP_DEREF      never
>
> LDAP_TLS      0

Regards,
Kelvin




_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to