mNo edit summary |
mNo edit summary |
||
Line 70: | Line 70: | ||
* Exclude weak ciphers from olcTLSCipherSuite in cn=config | * Exclude weak ciphers from olcTLSCipherSuite in cn=config | ||
* Setting "change password on first login" in FusionDirectory doesn't get enforced through PAM | * Setting "change password on first login" in FusionDirectory doesn't get enforced through PAM | ||
* Check out what happens to the history when usernames from the wiki no longer exist in the LDAP | * Check out what happens to the history when usernames from the wiki no longer exist in the LDAP -> Easier to merge them all into 1 user "history". What happens when you do this: | ||
Adding edit count of (8 and 70) | |||
Updating archive table (8 to 70) | |||
Updating revision table (8 to 70) | |||
Updating filearchive table (8 to 70) | |||
Updating image table (8 to 70) | |||
Updating oldimage table (8 to 70) | |||
Updating recentchanges table (8 to 70) | |||
Updating logging table (8 to 70) | |||
Updating ipblocks table (8 to 70) | |||
Updating ipblocks table (8 to 70) | |||
Updating watchlist table (8 to 70) | |||
Updating archive table (Aldert Hazenberg to History) | |||
Updating revision table (Aldert Hazenberg to History) | |||
Updating filearchive table (Aldert Hazenberg to History) | |||
Updating image table (Aldert Hazenberg to History) | |||
Updating oldimage table (Aldert Hazenberg to History) | |||
Updating recentchanges table (Aldert Hazenberg to History) | |||
Updating ipblocks table (Aldert Hazenberg to History) | |||
Updating ipblocks table (Aldert Hazenberg to History) | |||
* Migrate [[wiki]] users and merge them with other users | * Migrate [[wiki]] users and merge them with other users | ||
* Use LDAP as userdb back-end for [[wiki]] ([http://ryandlane.com/wprdl/2009/03/23/using-the-ldap-authentication-plugin-for-mediawiki-the-basics-part-1/ like so]) | * Use LDAP as userdb back-end for [[wiki]] ([http://ryandlane.com/wprdl/2009/03/23/using-the-ldap-authentication-plugin-for-mediawiki-the-basics-part-1/ like so]) | ||
* <s>Add all relevant fields of Wiki users to LDAP profiles (this will require [http://www.openldap.org/doc/admin24/schema.html#Extending Schema extending the schema])</s> we shouldn't want this | * <s>Add all relevant fields of Wiki users to LDAP profiles (this will require [http://www.openldap.org/doc/admin24/schema.html#Extending Schema extending the schema])</s> we shouldn't want this | ||
* Maintain [http://nurdspace.nl/Category:Members Members] page from LDAP ([http://www.mediawiki.org/wiki/Extension:External_Data#.23get_ldap_data_-_retrieve_data_from_LDAP_directory Like so], but this only displays 1 entry. Could be fixed [http://www.mediawiki.org/wiki/Extension_talk:External_Data/Archive_2012#.23for_external_table_support_for_.23get_ldap_data like so].) | * Maintain [http://nurdspace.nl/Category:Members Members] page from LDAP ([http://www.mediawiki.org/wiki/Extension:External_Data#.23get_ldap_data_-_retrieve_data_from_LDAP_directory Like so], but this only displays 1 entry. Could be fixed [http://www.mediawiki.org/wiki/Extension_talk:External_Data/Archive_2012#.23for_external_table_support_for_.23get_ldap_data like so].) |
Revision as of 23:39, 8 May 2013
NURDspace Project | |
---|---|
Participants | Fwd |
Skills | |
Status | |
Niche | |
Purpose | |
Tool | |
Location | |
Cost | |
Tool category |
{{{Name}}}Property "Tool Name" (as page type) with input value "{{{Name}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. Property "Tool Image" (as page type) with input value "File:{{{Picture}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process. {{{Picture}}} {{#if:{{{Tool}}} | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:{{{Tool}}} | [[Tool Cost::{{{Cost}}} | }}
For use with Spacenet we've installed OpenLDAP on NURDServer. On the new NURDServices we're going serious with LDAP.
Connected machines
- Sinterklaas
- Vjdeb
- PrinterPC
- NURDServices
- Proxmox1 (for fixing homedir ownership, only users in group "admins" can actually log in)
- Tankstation
Status
FusionDirectory is running on NURDServices.
It can be accessed on https://ldap.nurdspace.nl.
On Sinterklaas, Vjdeb and the PrinterPC it's working for the local users that existed:
- Homedirs moved to NFS mount from Proxmox1
- Local homedirs and users deleted (except user 'printer' on PrinterPC)
- /home/ is mounted over NFS on boot
- LDAP users can log in and see their homedirs as if nothing has changed
- Users in the LDAP 'sudo' group can sudo on connected workstations.
- Homedir is created on NFS-export when adding a user to LDAP (like this)
- Port 636 (ldaps) is forwarded to NURDServices for future use by the Wiki
Setting up other workstations in this way
To get this to work you need to:
- create all local users in LDAP (if they don't exist already)
- delete local users (optional)
- move homedirs to nurdservices (fix ownership because LDAP-users have a different UID)
- delete local homedirs
- mount /home from proxmox1:/mnt/md0/homedirs over nfs (put it in /etc/fstab)
- install libnss-ldapd and libpam-ldap (URI ldaps://ldap.nurdspace.nl/)
- put https://www.sslcertificaten.nl/files/PositiveSSLCA2.crt in /etc/ssl/certs/ with permissions 644
- in nslcd.conf set the following:
uri ldaps://ldap.nurdspace.nl/ base dc=nurdspace,dc=lan binddn cn=read-user,ou=systems,dc=nurdspace,dc=lan bindpw (obtain from other machine) ssl on tls_reqcert demand tls_cacertfile /etc/ssl/certs/PositiveSSLCA2.crt
- restart nslcd
- this information should also be used for pam_ldap.conf
- sudo might not work until you type 'id' which is kind of a mystery
Also useful: http://www.debian-administration.org/article/OpenLDAP_installation_on_Debian#NSS_configuration
In certain cases sudo can break. This can be fixed with a patch while it's not fixed properly.
To do
Read http://www.openldap.org/doc/admin24/slapdconf2.htmlFTPdnevermindSambanevermindCert installed for ldap.nurdspace.nl. Allow access only over TLS as soon as this works (ldapsearch -v -H ldaps://ldap.nurdspace.nl/ -D uid=fwd,ou=people,dc=nurdspace,dc=lan -W -b dc=nurdspace,dc=lan)Fix "nurdservices slapd[32524]: <= bdb_equality_candidates: (uid) not indexed" errors in /var/log/syslogConnect machines to LDAP over ldaps instead of ldap.Disable non-SSL ldapMigrate all local users on Infra machines to LDAPMigrate all homedirs to Proxmox1Maintain sudo'ers only through the LDAP anddisable local root accounts (backdoor in case of emergency?)Disable all relevant services on Nurdserver v1Upgrade FusionDirectory from 1.0.4 to 1.0.5- Exclude weak ciphers from olcTLSCipherSuite in cn=config
- Setting "change password on first login" in FusionDirectory doesn't get enforced through PAM
- Check out what happens to the history when usernames from the wiki no longer exist in the LDAP -> Easier to merge them all into 1 user "history". What happens when you do this:
Adding edit count of (8 and 70) Updating archive table (8 to 70) Updating revision table (8 to 70) Updating filearchive table (8 to 70) Updating image table (8 to 70) Updating oldimage table (8 to 70) Updating recentchanges table (8 to 70) Updating logging table (8 to 70) Updating ipblocks table (8 to 70) Updating ipblocks table (8 to 70) Updating watchlist table (8 to 70) Updating archive table (Aldert Hazenberg to History) Updating revision table (Aldert Hazenberg to History) Updating filearchive table (Aldert Hazenberg to History) Updating image table (Aldert Hazenberg to History) Updating oldimage table (Aldert Hazenberg to History) Updating recentchanges table (Aldert Hazenberg to History) Updating ipblocks table (Aldert Hazenberg to History) Updating ipblocks table (Aldert Hazenberg to History)
- Migrate wiki users and merge them with other users
- Use LDAP as userdb back-end for wiki (like so)
Add all relevant fields of Wiki users to LDAP profiles (this will require Schema extending the schema)we shouldn't want this- Maintain Members page from LDAP (Like so, but this only displays 1 entry. Could be fixed like so.)