Re: samba integration

Using uid instead of mail in dn should be OK too. but currently, i don't want to change this in iRedMail. That means you can't use iRedAdmin(-Pro) to manage your accounts.

Another way is tring to change Samba settings, make it work with 'mail' in dn, but i didn't test it yet, not sure whether it works or not. If you can give me some references/links/tutorials about Samba+OpenLDAP integration, i can test it when i have time. (i did integrate them before, but it was about 2-3 years ago, just want to make sure the latest versions can work together.)

I will try to integrate Samba/PureFTPd in iRedAdmin-Pro as plugins, but not in coming release versions.

Re: samba integration

I saw this in nss_ldap(5), that means you can use filter in nss_ldap config file:

nss_base_<map> <basedn?scope?filter>
Specify the search base, scope and filter to be used for specific maps. (Note that map forms part of the configuration file keyword and is one of passwd, shadow, group, hosts, services, networks, protocols, rpc, ethers, netmasks, bootparams, aliases and netgroup.) The syntax of basedn and scope are the same as for the configuration file options of the same name, with the addition of being able to omit the trailing suffix of the base DN (in which case the global base DN will be appended instead). The filter is a search filter to be added to the default search filter for a specific map, such that the effective filter is the logical intersection of the two. The base DN, scope and filter are separated with literal question marks (?) as given above; this is for compatibility with the DUA configuration profile schema and the ldapprofile tool. This option may be specified multiple times.

and i want to add some more points,1. The above tutorial worked for me as standalone..2. But now i want to integrate bot Iredmail and samba server.3. For that I have first installed Iredmail on new server and following the above tutorial to make it work with samba

Re: samba integration

Hi,

have reworked on the samba integration. still 2 issues , if any ideas :- to create new users, you need to use the script create_mail_user_OpenLDAP.sh which itself call smbldap-useradd- rouncube change password does not work : if an user change his password , he can no longer access the server