- Have a few different servers with different admins on them. Each admin owns his server and is responsible for it. (But we know and trust each others).
- Admins should be able to log on their own server with the local authentication file, so it will work even if the ldap is down.
- Ldap is running on one of the servers. Others connect to it when they need to authenticate a user (though replication to some/all other servers could be useful in the future).
- Ldap should be able to authenticate users of ssh, NX (or VNC), ownCloud and possibly samba connections. It would also be great if it could allow users to connect to a VPN on the servers.
- Ldap defines which services (ssh, ownCloud, …) a user or group can have access to.
- Have an easy to use interface to ldap, preferably web based, which allows an admin to add users and set their rights.
Questions:
- Is there a way to forbid admin users to be defined in the ldap ? Or better, some kind of filter set up locally on the servers to ignore admin accounts defined in the ldap ? This would prevent the ldap owner from acquiring admin rights on all servers.
- Is it possible to define a priority for the accounts defined in the local authentication file over the accounts defined in the ldap so that admin accounts defined locally cannot be modified by the ldap ?
- With ldap, how to restrict users to only selected servers or block them from selected servers ?
- With ldap, how to set different quotas for the same user (or group) but on different servers ?
What I did:
- urpmi openldap openldap-doc openldap-clients openldap-servers
- mv /var/lib/ldap /home/system/ # I put most non default configs of my server in the system user folder to make it easy to backup and manage.
- Edit /etc/openldap/slapd.conf, replacing "computername" by the right computer name:
- suffix "dc=computername,dc=local"
- rootdn "cn=Manager,dc=computername,dc=local"
- directory /home/system/ldap
- suffix "dc=computername,dc=local"
- Webmin: configure the ldap modules with the configuration folder: /etc/openldap/ instead of the /etc/ldap/
- Set the root ldap password with: slappasswd
- In MCC: System -> Authentification
- LDAP
- Button: Get the root DN
-> This empties all fields in the dialog, I don't know what to do now...
- LDAP
I searched the web for how to configure ldap on Mageia, but there was nothing useful.
On Mandriva, I found old documentations like http://wiki.mandriva.com/fr/Installer_u ... .28LDAP.29 (in french)
On all documentations I could find, they say to setup or use already made directory schemas. But they all seem to use different directory schemas. Is there one already ready in Mageia 2 ? How should I do this ?