<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=LDAP_Remote_Authentication</id>
		<title>LDAP Remote Authentication - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://gwiki3.thatlinuxbox.com/index.php?action=history&amp;feed=atom&amp;title=LDAP_Remote_Authentication"/>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=LDAP_Remote_Authentication&amp;action=history"/>
		<updated>2026-04-04T18:56:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.5</generator>

	<entry>
		<id>http://gwiki3.thatlinuxbox.com/index.php?title=LDAP_Remote_Authentication&amp;diff=4568&amp;oldid=prev</id>
		<title>Dirk: An attempt to describe the LDAP module</title>
		<link rel="alternate" type="text/html" href="http://gwiki3.thatlinuxbox.com/index.php?title=LDAP_Remote_Authentication&amp;diff=4568&amp;oldid=prev"/>
				<updated>2008-05-10T09:02:25Z</updated>
		
		<summary type="html">&lt;p&gt;An attempt to describe the LDAP module&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Background ==&lt;br /&gt;
[[Remote Authentication]] was introduced in Geeklog 1.4.0. It allows for authenticating a user against a remote user database.&lt;br /&gt;
&lt;br /&gt;
The LDAP module for Geeklog was kindly provided by Jessica Blank / MTV Networks. It is shipped with Geeklog 1.5.0 and later but will also work with Geeklog 1.4.x.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The LDAP module comes with its own &amp;lt;tt&amp;gt;config.php&amp;lt;/tt&amp;gt; file located in&lt;br /&gt;
&amp;lt;pre&amp;gt;/path/to/geeklog/system/classes/authentication/ldap&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You will need some knowledge about LDAP in order to be able to configure this module correctly. If in doubt, try asking your system administrator for help.&lt;br /&gt;
&lt;br /&gt;
In most cases, you will only need to edit the following portion of the configuration:&lt;br /&gt;
&amp;lt;pre&amp;gt;// Basic LDAP variables&lt;br /&gt;
$_LDAP_CONF['user_ou'] = &amp;quot;People&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['group_ou'] = &amp;quot;Group&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['branch'] = &amp;quot;dc=mydc,dc=com&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['user_branch'] = &amp;quot;ou={$_LDAP_CONF['user_ou']},&amp;quot; . $_LDAP_CONF['branch'];&lt;br /&gt;
$_LDAP_CONF['user_attributes'] = array(&amp;quot;uid&amp;quot;,&amp;quot;cn&amp;quot;,&amp;quot;ou&amp;quot;,&amp;quot;objectClass&amp;quot;,&amp;quot;shadowLastChange&amp;quot;,&lt;br /&gt;
  &amp;quot;loginShell&amp;quot;,&amp;quot;uidnumber&amp;quot;,&amp;quot;gidNumber&amp;quot;,&amp;quot;homeDirectory&amp;quot;,&amp;quot;gecos&amp;quot;,&amp;quot;userPassword&amp;quot;,&amp;quot;givenName&amp;quot;,&lt;br /&gt;
  &amp;quot;sn&amp;quot;,&amp;quot;mail&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// LDAP server configuration&lt;br /&gt;
$_LDAP_CONF['servers'][0]['bind_dn'] = &amp;quot;cn=mycn,ou=LDAPusers,dc=mydc,dc=com&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['servers'][0]['password'] = &amp;quot;mypassword&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['servers'][0]['host'] = &amp;quot;localhost&amp;quot;;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Details will depend heavily on your organisation's structure and how your LDAP server is configured, so it's hard to provide an example configuration.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
Here's one (anonymized) setup:&lt;br /&gt;
&amp;lt;pre&amp;gt;// Basic LDAP variables&lt;br /&gt;
$_LDAP_CONF['user_ou'] = &amp;quot;People&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['group_ou'] = &amp;quot;users&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['branch'] = &amp;quot;o=companyname,c=de&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['user_branch'] = &amp;quot;ou={$_LDAP_CONF['user_ou']},&amp;quot; . $_LDAP_CONF['branch'];&lt;br /&gt;
$_LDAP_CONF['user_attributes'] = array(&amp;quot;uid&amp;quot;,&amp;quot;cn&amp;quot;,&amp;quot;ou&amp;quot;,&amp;quot;objectClass&amp;quot;,&amp;quot;shadowLastChange&amp;quot;,&lt;br /&gt;
  &amp;quot;loginShell&amp;quot;,&amp;quot;uidnumber&amp;quot;,&amp;quot;gidNumber&amp;quot;,&amp;quot;homeDirectory&amp;quot;,&amp;quot;gecos&amp;quot;,&amp;quot;userPassword&amp;quot;,&amp;quot;givenName&amp;quot;,&lt;br /&gt;
  &amp;quot;sn&amp;quot;,&amp;quot;mail&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// LDAP server configuration&lt;br /&gt;
$_LDAP_CONF['servers'][0]['bind_dn'] = &amp;quot;uid=username,ou=People,ou=users,o=companyname,c=de&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['servers'][0]['password'] = &amp;quot;password&amp;quot;;&lt;br /&gt;
$_LDAP_CONF['servers'][0]['host'] = &amp;quot;ldapserver&amp;quot;;&amp;lt;/pre&amp;gt;&lt;br /&gt;
... where 'companyname', 'ldapserver', 'username', and 'password' are, of course, not the real values. Also note the &amp;quot;c=de&amp;quot; (for Germany) that you probably want to change.&lt;br /&gt;
&lt;br /&gt;
In this example, the LDAP server required a valid user account (&amp;quot;uid=username&amp;quot;) and password to even be able to talk to it. This is not a typical setup, but shows how flexible (and, therefore, complex) the setup is.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Active Directory ==&lt;br /&gt;
&lt;br /&gt;
To quote [http://en.wikipedia.org/wiki/Active_Directory Wikipedia]:&lt;br /&gt;
:Active Directory (AD) is an implementation of LDAP directory services by Microsoft for use primarily in Windows environments.&lt;br /&gt;
It should therefore be possible to use the LDAP module in a Windows / AD environment. If you have such a setup working, please let us know.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>	</entry>

	</feed>