Your name as displayed online. Note, this must be a unique Wiki name. By default it is derived from your first and last name.
Your email address will be kept confidential.
[Tue May 10 17:08:35 2016] [error] [client 172.29.30.9] - LdapContrib - called refreshCache(mode=1), referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:08:35 2016] [error] [client 172.29.30.9] - LdapContrib - precaching is ON., referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:08:35 2016] [error] [client 172.29.30.9] - LdapContrib - called refreshUsersCache(OU=IT,OU=DE-Bad Camberg,OU=Employees,OU=Users,OU=mydomain,DC=mydomain,DC=com), referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:08:35 2016] [error] [client 172.29.30.9] - LdapContrib - reading users from cache with page size=500, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:08:35 2016] [error] [client 172.29.30.9] - LdapContrib - called search(filter=objectClass=posixAccount, base=OU=IT,OU=DE-Bad Camberg,OU=Employees,OU=Users,OU=mydomain,DC=mydomain,DC=com, scope=sub, sizelimit=0, attrs=uid,mail,gidNumber,cn), referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:08:35 2016] [error] [client 172.29.30.9] - LdapContrib - got 0 keys in cache, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:18:03 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=568, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic?refreshldap=on
[Tue May 10 17:18:04 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=569, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic?refreshldap=on
[Tue May 10 17:18:06 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=571, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:20:01 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=686, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/System/UserRegistration
[Tue May 10 17:20:04 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=689, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/login/System/UserRegistration?foswiki_origin=GET%2cview%2c/foswiki/bin/view/System/UserRegistration
[Tue May 10 17:29:49 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1274, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/login/System/UserRegistration
[Tue May 10 17:29:53 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1278, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/login/System/UserRegistration
[Tue May 10 17:29:54 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1279, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/login/System/UserRegistration
[Tue May 10 17:29:58 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1283, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/System/UserRegistration?validation_key=c02bf3c12a3e596006e505ed2b6522e0;usernamestep=admin
[Tue May 10 17:30:01 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1286, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Main/AdminUser
[Tue May 10 17:30:03 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1288, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/WebHome
[Tue May 10 17:30:05 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1290, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/WebHome
[Tue May 10 17:30:06 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1291, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/WebHome
[Tue May 10 17:30:11 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1296, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/WebHome
[Tue May 10 17:30:54 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1339, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Main/AdminUser
[Tue May 10 17:30:56 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1341, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/WebHome
[Tue May 10 17:30:57 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1342, maxCacheAge=86400, lastUpdate=1462892915, refresh=0, referer: http://srv-as08v/foswiki/bin/view/Sandbox/WebHome
[Tue May 10 17:31:00 2016] [error] [client 172.29.30.9] - LdapContrib - cacheAge=1345, maxCacheAge=86400, lastUpdate=1462892915, refresh=1, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:31:00 2016] [error] [client 172.29.30.9] - LdapContrib - called refreshCache(mode=1), referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:31:00 2016] [error] [client 172.29.30.9] - LdapContrib - precaching is ON., referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:31:00 2016] [error] [client 172.29.30.9] - LdapContrib - called refreshUsersCache(OU=IT,OU=DE-Bad Camberg,OU=Employees,OU=Users,OU=mydomain,DC=mydomain,DC=com), referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:31:00 2016] [error] [client 172.29.30.9] - LdapContrib - reading users from cache with page size=500, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:31:00 2016] [error] [client 172.29.30.9] - LdapContrib - called search(filter=objectClass=posixAccount, base=OU=IT,OU=DE-Bad Camberg,OU=Employees,OU=Users,OU=mydomain,DC=mydomain,DC=com, scope=sub, sizelimit=0, attrs=uid,mail,gidNumber,cn), referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
[Tue May 10 17:31:00 2016] [error] [client 172.29.30.9] - LdapContrib - got 0 keys in cache, referer: http://srv-as08v/foswiki/bin/view/Sandbox/TestTopic
$Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::LdapUserMapping';Maybe someone of you guy can help me with this. I really don't know where to look at next. Thanks in advance Daniel -- GrofaIT - 10 May 2016 See
$Foswiki::cfg{PasswordManager} = 'Foswiki::Users::LdapPasswdUser';
$Foswiki::cfg{MinPasswordLength} = 7;
$Foswiki::cfg{Htpasswd}{FileName} = '$Foswiki::cfg{DataDir}/.htpasswd';
$Foswiki::cfg{Htpasswd}{Encoding} = 'apache-md5'; $Foswiki::cfg{Ldap}{PersonDataForm} = 'UserForm';
$Foswiki::cfg{Ldap}{PersonAttribures} = {
'c' => 'Country',
'company' => 'OrganisationName',
'department' => 'Department',
'division' => 'Division',
'facsimileTelephoneNumber' => 'Telefax',
'givenName' => 'FirstName',
'l' => 'Location',
'mail' => 'Email',
'manager' => 'Manager',
'mobile' => 'Mobile',
'physicalDeliveryOfficeName' => 'Address',
'postalAddress' => 'Address',
'sAMAccountName' => 'LoginName',
'sn' => 'LastName',
'streetAddress' => 'Address',
'telephoneNumber' => 'Telephone',
'title' => 'Title',
'uid' => 'LoginName'
};
$Foswiki::cfg{Ldap}{IndexEmails} = 1;
$Foswiki::cfg{Ldap}{PreferLocalSettings} = 1;
$Foswiki::cfg{Ldap}{DefaultCacheExpire} = '';
$Foswiki::cfg{Ldap}{IgnoreViewRightsInSearch} = 0;
$Foswiki::cfg{Ldap}{Host} = 'srv-win-dc01.mydomain.com';
$Foswiki::cfg{Ldap}{Port} = 389;
$Foswiki::cfg{Ldap}{IPv6} = 0;
$Foswiki::cfg{Ldap}{Version} = '3';
$Foswiki::cfg{Ldap}{Base} = 'DC=mydomain,DC=com';
$Foswiki::cfg{Ldap}{BindDN} = 'CN=AD_Reader,OU=ServiceAccounts,OU=Users,OU=mydomain,DC=mydomain,DC=com';
$Foswiki::cfg{Ldap}{BindPassword} = 'AD_Reader';
$Foswiki::cfg{Ldap}{CharSet} = 'utf-8';
$Foswiki::cfg{Ldap}{UseSASL} = 0;
$Foswiki::cfg{Ldap}{SASLMechanism} = 'PLAIN CRAM-MD5 EXTERNAL ANONYMOUS';
$Foswiki::cfg{Ldap}{UseTLS} = 0;
$Foswiki::cfg{Ldap}{TLSSSLVersion} = 'tlsv1';
$Foswiki::cfg{Ldap}{TLSVerify} = 'require';
$Foswiki::cfg{Ldap}{TLSCAPath} = '';
$Foswiki::cfg{Ldap}{TLSCAFile} = '';
$Foswiki::cfg{Ldap}{TLSClientCert} = '';
$Foswiki::cfg{Ldap}{TLSClientKey} = '';
$Foswiki::cfg{Ldap}{Debug} = 1;
$Foswiki::cfg{Ldap}{UserBase} = [
'OU=IT,OU=DE-Bad Camberg,OU=Employees,OU=Users,OU=mydomain,DC=mydomain,DC=com'
];
$Foswiki::cfg{Ldap}{LoginFilter} = 'objectClass=posixAccount';
$Foswiki::cfg{Ldap}{UserScope} = 'sub';
$Foswiki::cfg{Ldap}{LoginAttribute} = 'uid';
$Foswiki::cfg{Ldap}{MailAttribute} = 'mail';
$Foswiki::cfg{Ldap}{WikiNameAttributes} = 'cn';
$Foswiki::cfg{Ldap}{NormalizeWikiNames} = 1;
$Foswiki::cfg{Ldap}{NormalizeLoginNames} = 0;
$Foswiki::cfg{Ldap}{CaseSensitiveLogin} = 0;
$Foswiki::cfg{Ldap}{WikiNameAliases} = '';
$Foswiki::cfg{Ldap}{RewriteWikiNames} = {
'^(.*)@.*$' => '$1'
};
$Foswiki::cfg{Ldap}{AllowChangePassword} = 0;
$Foswiki::cfg{Ldap}{SecondaryPasswordManager} = 'Foswiki::Users::HtPasswdUser';
$Foswiki::cfg{Ldap}{GroupBase} = [
'OU=Security,OU=Groups,OU=mydomain,DC=mydomain,DC=com'
];
$Foswiki::cfg{Ldap}{GroupFilter} = 'objectClass=posixGroup';
$Foswiki::cfg{Ldap}{GroupScope} = 'sub';
$Foswiki::cfg{Ldap}{GroupAttribute} = 'cn';
$Foswiki::cfg{Ldap}{PrimaryGroupAttribute} = 'gidNumber';
$Foswiki::cfg{Ldap}{MemberAttribute} = 'memberUid';
$Foswiki::cfg{Ldap}{InnerGroupAttribute} = 'memberUid';
$Foswiki::cfg{Ldap}{MemberIndirection} = 0;
$Foswiki::cfg{Ldap}{WikiGroupsBackoff} = 1;
$Foswiki::cfg{Ldap}{NormalizeGroupNames} = 0;
$Foswiki::cfg{Ldap}{MapGroups} = 0;
$Foswiki::cfg{Ldap}{RewriteGroups} = {};
$Foswiki::cfg{Ldap}{MergeGroups} = 0;
$Foswiki::cfg{Ldap}{MaxCacheAge} = 86400;
$Foswiki::cfg{Ldap}{Precache} = 1;
$Foswiki::cfg{Ldap}{PageSize} = 500;
$Foswiki::cfg{Ldap}{Exclude} = 'WikiGuest, ProjectContributor, RegistrationAgent, UnknownUser, AdminGroup, NobodyGroup, AdminUser, admin, guest';
got 0 keys in cache
aka "nothing found". You current settings to search for keys don't match your Active Directory, i.e. LoginFilter and GroupFilter are still defaults that only make sense when using an OpenLDAP server.
You need to adjust the following settings for an AD:
{Register}[AllowLoginName}
Then restart your webserver. Go to System.LdapContrib and click on the refresh button.
From there on just log in using your sAMAccountName. Note that you do not have to register on the Foswiki site. The point of using LdapContrib is to avoid this in the first place. User accounts are maintained in AD, not in Foswiki.
-- MichaelDaum - 10 May 2016
Awesome. Non it works like a charm now. Thanks a lot you saved me.
-- GrofaIT - 11 May 2016
Subject | Using an extension |
Extension | LdapContrib |
Version | Foswiki 2.1.2 |
Status | Answered |
Related Topics |