Tags:
create new tag
, view all tags
Please note that this is NOT a working config.

lib/LocalSite.cfg config file for integration with Windows 2003 Active Directory

$TWiki::cfg{DataDir} = '/var/www/twiki/data';
$TWiki::cfg{Password} = '';
$TWiki::cfg{Site}{Lang} = 'en';
$TWiki::cfg{LocalesDir} = '/var/www/twiki/locale';
$TWiki::cfg{ScriptUrlPath} = '/twiki/bin';
$TWiki::cfg{DefaultUrlHost} = 'http://wiki';
$TWiki::cfg{Site}{FullLang} = 'en-us';
$TWiki::cfg{PubUrlPath} = '/twiki/pub';
$TWiki::cfg{PubDir} = '/var/www/twiki/pub';
$TWiki::cfg{TemplateDir} = '/var/www/twiki/templates';
$TWiki::cfg{Site}{CharSet} = 'iso-8859-15';
$TWiki::cfg{MinPasswordLength} = 5;
$TWiki::cfg{Htpasswd}{FileName} = '/var/www/twiki/data/htpasswd';
$TWiki::cfg{Plugins}{WysiwygPlugin}{Enabled} = 1;
$TWiki::cfg{StoreImpl} = 'RcsLite';


# LDAP configuration file

# please include the contents of this file into lib/LocalSite.cfg and edit it
# to your needs

# ip address (or hostname) of the LDAP server
$TWiki::cfg{Ldap}{Host} = '192.168.x.x';

# port used when binding to the LDAP server
$TWiki::cfg{Ldap}{Port} = 389;

# ldap protocol version to use when querying the server; possible values: 2, 3
$TWiki::cfg{Ldap}{Version} = '3';

# the base DN to use in searches
$TWiki::cfg{Ldap}{Base} = 'dc=corp,dc=CORP-DOMAIN,dc=com';

# define the DN of the users tree
$TWiki::cfg{Ldap}{BasePasswd} = 'dc=corp,dc=CORP-DOMAIN,dc=com';

# define the DN of the groups tree
$TWiki::cfg{Ldap}{BaseGroup} = 'dc=corp,dc=CORP-DOMAIN,dc=com';

# define the user login name attribute
$TWiki::cfg{Ldap}{LoginAttribute} = 'sAMAccountName';

# define the user's wiki name attribute
$TWiki::cfg{Ldap}{WikiNameAttribute} = 'cn';

# flag to remove whitespaces in wiki names that come from ldap
$TWiki::cfg{Ldap}{WikiNameRemoveWhiteSpace} = 1;

# filter to be used to find login accounts
#$TWiki::cfg{Ldap}{LoginFilter} = 'objectClass=posixAccount';
$TWiki::cfg{Ldap}{LoginFilter} = 'objectClass=user';

# define the group name
$TWiki::cfg{Ldap}{GroupAttribute} = 'cn';

# filter to be used to find groups 
#$TWiki::cfg{Ldap}{GroupFilter} = 'objectClass=posixGroup';
$TWiki::cfg{Ldap}{GroupFilter} = '';

# flag indicating wether we fallback to TWikiGroups
$TWiki::cfg{Ldap}{TWikiGroupsBackoff} = 1;

# define the attribute that should be used to collect group members
#$TWiki::cfg{Ldap}{MemberAttribute} = 'memberUid';
$TWiki::cfg{Ldap}{MemberAttribute} = 'memberOf';

# flag indicating wether the member attribute of a group stores a DN
$TWiki::cfg{Ldap}{MemberIndirection} = 1;

# the dn to use when binding to the LDAP server; if undefined anonymous binding
# will be used
$TWiki::cfg{Ldap}{BindDN} = 'CN=twiki_reader,CN=Users,dc=corp,dc=CORP-DOMAIN,dc=com';

# the password used when binding to the LDAP server
$TWiki::cfg{Ldap}{BindPassword} = 'YES,WE_HAVE_ONE';

# negotiate ssl when binding to the server; possible values: 0, 1
# TODO: not implemented yet
#$TWiki::cfg{Ldap}{SSL} = 0;

# refresh rate when the ldap cache is fetched from the LDAP server; 
# a value of -1 means unlimitted caching; 
# a value of 0 disables the cache; 
# default is -1
#$TWiki::cfg{Ldap}{MaxCacheHits} = -1;
$TWiki::cfg{PasswordManager} = 'TWiki::Users::LdapUser';
$TWiki::cfg{Register}{HidePasswd} = 0;
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::LdapUserMapping';
$TWiki::cfg{Register}{AllowLoginName} = 1;
$TWiki::cfg{Htpasswd}{Encoding} = 'md5';
$TWiki::cfg{LoginManager} = 'TWiki::Client::TemplateLogin';
1;

-- MaximVexler - 25 Aug 2006

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-08-27 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.