Altogether now...
Posted on 30 Mar 2009 at 15:43
Simon Brock shows how to put paid to the nightmare of multiple logins with the lightweight directory access protocol.
The one part of the configuration that took us some time to figure out was how to set up Mirror Mode replication. To do this, you must set up a syncrepl provider in your configuration file, and to do this read the manual carefully and make sure you do exactly what it says. You'll also need to put some information into your server, so we followed the instructions in the Samba documentation to set up a few users, which involved using the smb-ldap-tools package to create all the users and groups for both Windows and Unix. The final stage of this process involved executing a command called smbldap-populate, for which you need to have your OpenLDAP server running.
If you've followed all the documentation you should now have created a single instance of an OpenLDAP server with some information in it, and before using it we recommend setting up replication. To do this, you'll need an LDAP query tool, of which there are many. We found various command-line interfaces hard to use, but settled for the Directory Studio from the Apache Directory Server project, which is available either as a standalone application or as a plug-in for Eclipse.
Once you have OpenLDAP running, connect into your LDAP server and browse its directory tree and edit records. To get replication up and running, you'll need to set up the Mirror Mode user from above, which you can do using the smb-useradd utility that comes in the tools package just mentioned. This made the user too general, because it included Unix and Windows components that we didn't need, but it did get the user set up. At this point, we stopped our LDAP server and took a backup using the slapcat command, then moved this file over to the other server and used slapadd to load a replica. Make sure you use slapadd's -w switch on the replicant to ensure that the replication is up to date for the new server.
Now for the moment of truth! We started both servers with debugging enabled and used the Directory Studio to make a small change to a record in one server, checked the log files and then checked the other server to be sure that change had been propagated. Once we were sure it was working one way, we then tried it the other way round. We did hit a couple of problems with this, but most of them boiled down to having set the options wrong in our slapd.conf.
And finally GOsa
Installing GOsa was a two-stage process: first install the software following the instructions on the website for our operating system, and then use a web browser to go to its setup page. Following the steps outlined on the website enabled us to set up our system, letting GOsa do all the things it wanted to do, and we were then able to log in as an administrator. If you install all the GOsa options, you'll soon see the scope of the facilities that GOsa can manage in the directory. The online documentation is the first place to look for more information, but here are two things from our experience that you'll need to know.
The first is the facility by which you create templates that are then used to create objects. For example, we've set up a user template to create an internal member of staff, which puts them into all the correct groups and the Windows domain. One particularly useful feature of this system is that the template can refer to other things in the directory - so, for example, we can set a user's email address based on a first name and surname provided earlier by writing %givenname.%sn@domain.co.uk in the appropriate field. The second feature you need to know about is Access Control Lists (ACL), without which your users won't be able to access GOsa. A key job you need to do here is set up an ACL, so your users can change their own passwords - there's an example on the website about allowing a user to change their mobile phone number, and if you copy this you should be okay.
advertisement
- Getting to grips with Microsoft's IT Health Environment Scanner
- Virtualise your servers
- The changing face of travel gadgets
- Build your own distributed file system
- The bulletproof Dell that costs an arm and a leg
- Microsoft Office 2010 Technical Preview: Q&A
- Lawnmowers, the TyTN II and one odd insurance request
- There'll never be a bulletproof OS
- How far can we trust apps?
- Five nice touches in Outlook 2010
- Why Britain's watchdogs have fewer teeth than goldfish
- Tabbed documents: how to make Office 2010 great
- Outlook 2010 People Pane – does it spell death to Xobni
- Microsoft Outlook 2010 screenshots
- Co-Authoring in Word 2010 and SharePoint Foundation 2010
- Microsoft Outlook 2010 screenshots: Backstage view
- Flash 10.1: Developing for Desktop and Device
- Microsoft Office 2010 screenshots: Recover unsaved items
- Microsoft Word 2010 screenshots: Text Effects
- Microsoft Word 2010: inserting screenshots
- Q&A: Why Conficker was a victim of its own success
- App developers losing faith in Android
- Biz Stone: Murdoch's Google veto will "fail fast"
- Google adds automatic captions to YouTube
- China ramps up cyber spying
- Mozilla maintains dependence on Google
- Windows 7 flying off the shelves
- Google Chrome OS: full details unveiled
- AOL slashes 2,500 jobs
- YouTube begins streaming full-length shows
advertisement
Printed from www.pcpro.co.uk


