LDAP and dbmail

View: New views
5 Messages — Rating Filter:   Alert me  

LDAP and dbmail

by raba34 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have added a user to LDAP. After this, "dbmail -l <username>" show me the user, but he can't receive mail, because he isn't registered in the database. What can I do? It is not possible to create the user in mysql with "dbmail -c <user>" because dbmail means, the user already exists.

Ralph

Re: LDAP and dbmail

by Paul J Stevens :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

raba34 wrote:
> Hello,
>
> I have added a user to LDAP. After this, "dbmail -l <username>" show me the
> user, but he can't receive mail, because he isn't registered in the
> database. What can I do? It is not possible to create the user in mysql with
> "dbmail -c <user>" because dbmail means, the user already exists.

If you use authldap, the user_idnr field in the database *must* match
the uidNumber attribute in ldap, or whatever attribute field_nid points
to in dbmail.conf.

So if you migrate from authsql to authldap, you should update the
user_idnr in the database and you're all set.


--
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail@...
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Re: LDAP and dbmail

by raba34 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I understand, but my problem is another. I would like to establish users in LDAP for a couple of applications such as for Moodle, BSCW, dbmail and so on. After this, the user can employ e. g. Moodle directly. No changes are needed in Moodle because an entry in LDAP ist sufficient.

This is not possible at dbmail, since an entry in LDAP is insufficient for using dbmail. I have to setting up user, mailbox and so on in mysql, but I don't know how exactly.

I think, it's not a solution to use few lines like "insert ... into ...", because tables vary from version to version. Furthermore I mean, LDAP makes only sense if the Admin has only one place to enable or to disable the use of applications.

Ralph
Paul J Stevens wrote:
raba34 wrote:
> Hello,
>
> I have added a user to LDAP. After this, "dbmail -l <username>" show me the
> user, but he can't receive mail, because he isn't registered in the
> database. What can I do? It is not possible to create the user in mysql with
> "dbmail -c <user>" because dbmail means, the user already exists.

If you use authldap, the user_idnr field in the database *must* match
the uidNumber attribute in ldap, or whatever attribute field_nid points
to in dbmail.conf.

So if you migrate from authsql to authldap, you should update the
user_idnr in the database and you're all set.


--
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Re: LDAP and dbmail

by Paul J Stevens :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

raba34 wrote:
> Hello,
>
> I understand, but my problem is another. I would like to establish users in
> LDAP for a couple of applications such as for Moodle, BSCW, dbmail and so
> on. After this, the user can employ e. g. Moodle directly. No changes are
> needed in Moodle because an entry in LDAP ist sufficient.

Same for dbmail.

>
> This is not possible at dbmail, since an entry in LDAP is insufficient for
> using dbmail. I have to setting up user, mailbox and so on in mysql, but I
> don't know how exactly.

Not true. Dbmail will automatically create shadow entries in
dbmail_users on first insertion of a message.

>
> I think, it's not a solution to use few lines like "insert ... into ...",
> because tables vary from version to version. Furthermore I mean, LDAP makes
> only sense if the Admin has only one place to enable or to disable the use
> of applications.

Indeed. Don't start messing with the tables. No need.


--
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail@...
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Re: LDAP and dbmail

by raba34 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, you are right. It works. I had make a mistake before.

Ralph

Paul J Stevens wrote:
raba34 wrote:
> Hello,
>
> I understand, but my problem is another. I would like to establish users in
> LDAP for a couple of applications such as for Moodle, BSCW, dbmail and so
> on. After this, the user can employ e. g. Moodle directly. No changes are
> needed in Moodle because an entry in LDAP ist sufficient.

Same for dbmail.

>
> This is not possible at dbmail, since an entry in LDAP is insufficient for
> using dbmail. I have to setting up user, mailbox and so on in mysql, but I
> don't know how exactly.

Not true. Dbmail will automatically create shadow entries in
dbmail_users on first insertion of a message.

>
> I think, it's not a solution to use few lines like "insert ... into ...",
> because tables vary from version to version. Furthermore I mean, LDAP makes
> only sense if the Admin has only one place to enable or to disable the use
> of applications.

Indeed. Don't start messing with the tables. No need.


--
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail