1 (edited by shehyar 2014-05-28 20:18:35)

Topic: Custom attribute "homeDirectory"

Hello,
I'd like to specify the possibility of replacement of default attribute "homeDirectory" with some other.
Tell me please if it is possible. And what exactly should be modified? This attribute doesn't let me connect other applications to OpenLDAP correctly.

Thank you!

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend LDAP
- Linux/BSD distribution name and version: Debian 7
- Related log if you're reporting an issue:
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Custom attribute "homeDirectory"

shehyar wrote:

This attribute doesn't let me connect other applications to OpenLDAP correctly.

Excuse me, what do you mean "connect other applications to OpenLDAP correctly"?

Currently, homeDirectory is used to store maildir path of user's mailbox, it's used in Dovecot (/etc/dovecot/dovecot-ldap.conf). You can replace it by other attribute, or even don't use it and hard-code maildir path to '[domain]/username/' format.

3 (edited by shehyar 2014-05-30 17:56:25)

Re: Custom attribute "homeDirectory"

IRedMail is a product of a high quality, thank you.

We began to shift our company to OpenLDAP from IRedMail.
We added a lot of additional attributes into your tree LDAP( o=domains,dc=example,dc=com)
Now we want to make the SSH authentication on the servers with the help of LDAP. But in order to do it we need the normal content of the field homeDirectory (for example /home/developer).
In iRedMail this field indicates the path to maildir.
It is wrong to use it as homedir.

Maybe we do something wrong?
Is there a better way of integration of iRedMail with other applications?

Thank you

4

Re: Custom attribute "homeDirectory"

shehyar wrote:

In iRedMail this field indicates the path to maildir.
It is wrong to use it as homedir.

- The directory stored in homeDirectory is something like this: /var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/.
- Mailbox will be: /var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/Maildir/
- Sieve scripts will be stored under: /var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/sieve/

Personally, i think it's ok to use homeDirectory generated by iRedMail (/var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/) as user's HOME directory. But it's up to you, i guess you need /home/[username]? But i don't see big difference, except you don't want user to see files in mailbox.

5

Re: Custom attribute "homeDirectory"

ZhangHuangbin wrote:
shehyar wrote:

In iRedMail this field indicates the path to maildir.
It is wrong to use it as homedir.

- The directory stored in homeDirectory is something like this: /var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/.
- Mailbox will be: /var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/Maildir/
- Sieve scripts will be stored under: /var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/sieve/

Personally, i think it's ok to use homeDirectory generated by iRedMail (/var/vmail/[domain]/u/s/e/username-[TIMESTAMP]/) as user's HOME directory. But it's up to you, i guess you need /home/[username]? But i don't see big difference, except you don't want user to see files in mailbox.

Sorry,
i just need to use attribute 'homeDirectory' to PAM/LDAP authentication SSH for users homedir, i use default config PAM/LDAP smile

6

Re: Custom attribute "homeDirectory"

Any concern with using homeDirectory generated by iRedMail?

7

Re: Custom attribute "homeDirectory"

$ ssh testuser@sshldap.example.com
testuser@192.168.4.227's password:
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 2.6.32-22-pve i686)

* Documentation:  https://help.ubuntu.com/
Last login: Tue Jun  3 07:28:26 2014 from 192.168.100.100
$ pwd
/var/vmail/vmail1/example.com/t/u/testuser-2014.03.04.00.00.00

sad

8

Re: Custom attribute "homeDirectory"

shehyar wrote:

$ pwd
/var/vmail/vmail1/example.com/t/u/testuser-2014.03.04.00.00.00

sad

?

Looks like PAM + LDAP + SSH is working, any concern or problem?