DokuWiki

It's better when it's simple

ユーザ用ツール

サイト用ツール


サイドバー

この翻訳は元のページよりも更新日が古く、内容が古い可能性があります。 変更点を参照して下さい。
このページの翻訳?:

DokuWiki について知る

開発

法人利用

我々のコミュニティ


FacebookTwitterや他のソーシャル・ネットワークからフォローしてください。

ja:auth:ldap_ad

LDAP 認証バックエンド: Active Directory 設定例

Since the release 2013-05-10 “Weatherwax”
see AuthLDAP AD plugin page

For releases 2012-10-13 “Adora Belle” and older
see info below

Below are example configurations for use with the LDAP backend and the Active Directory server.

Please note that there is a dedicated Active Directory authentication backend which should be much easier to set up and can also handle Single-Sign-On via NTLM.

Note: Beware of uppercase in domain names, login will work but the use of Active Directory group won't, use a tool like AD Explorer to debug.

Active Directory グループ使用例

  • “mydomain” と “dom” は、あなたのADドメイン名に変更してください。
$conf['authtype']                         = 'ldap';
$conf['auth']['ldap']['server']           = 'mydomain.dom';
$conf['auth']['ldap']['binddn']           = '%{user}@%{server}';
$conf['auth']['ldap']['usertree']         = 'dc=mydomain,dc=dom';
$conf['auth']['ldap']['userfilter']       = '(userPrincipalName=%{user}@%{server})';
$conf['auth']['ldap']['mapping']['name']  = 'displayname';
$conf['auth']['ldap']['mapping']['grps']  = array('memberof' => '/CN=(.+?),/i');
$conf['auth']['ldap']['grouptree']        = 'dc=mydomain,dc=dom'; # position for find groups, at root here
$conf['auth']['ldap']['groupfilter']      = '(&(cn=*)(Member=%{dn})(objectClass=group))'; # find groups for current user(dn)
$conf['auth']['ldap']['referrals']        = 0; # Switch referrals off for use with Active Directory
$conf['auth']['ldap']['version']          = 3;
$conf['auth']['ldap']['debug']            = 0; #set 1 for watch authenticate activity (eg. list of user groups) on html page

If you receive a binding error like “LDAP: bind with xxx failed [ldap.class.php:90]”, try using

$conf['auth']['ldap']['binddn']           = 'domain\%{user}';

Replace domain with your domain name.

入れ子になった、グループに対応するには、以下を試してください。
(Windows Active Directory で確認済み
Sambaでの動作は不明)

$conf['auth']['ldap']['groupfilter']           = '(&(cn=*)(Member:1.2.840.113556.1.4.1941:=%{dn})(objectClass=group))';

ユーザー限定アクセス例

$conf['authtype']                        = 'ldap';
$conf['auth']['ldap']['server']          = '127.0.0.1:389';
$conf['auth']['ldap']['binddn']          = '%{user}@yourfulldomainname';
$conf['auth']['ldap']['usertree']        = ''; // point to container where your users are ie OU=x, DC=y etc
$conf['auth']['ldap']['userfilter']      = '(userPrincipalName=%{user}@yourfulldomainname)';
$conf['auth']['ldap']['grouptree']       = ''; // point this to container where your groups are ie CN=Users, DC=x etc
$conf['auth']['ldap']['groupfilter']     = '(&(cn=USR_*)(Member=%{dn})(ObjectCategory=group))';//selects only the groups with the user as a member
//remember dn is the full dn to the user's account - filters on groups starting with USR_
$conf['auth']['ldap']['mapping']['name'] = 'displayname';
$conf['auth']['ldap']['mapping']['grps'] = 'array(\'memberof\' => \'/CN=(.+?),/i\')';
$conf['auth']['ldap']['referrals']       = '0';
ja/auth/ldap_ad.txt · 最終更新: 2016-09-26 09:19 by 124.39.43.146