×

扫描二维码登录本站

QQ登录

只需一步,快速开始

标签: 暂无标签
按照论坛里面前面留下的方法试了试,都不成功啊,不知道是哪里有问题还是少了什么步骤,请帮忙看看

1. 这个脚本做完了,\xampp\htdocs\webservices\AD_import_accounts.php
    但是网页运行和脚本运行,都是print出了配置,没有导入账户信息

Edit the configuration array at the beginning of the script to tailor it to your needs:
// Configuration of the Active Directory connection
'host' => 'localhost', // IP or FQDN of your domain controller
'port' => '389', // LDAP port, 398=LDAP, 636= LDAPS
'dn' => 'DC=combodo,DC=net', // Domain DN
'username' => 'ad_user', // username with read access
'password' => 'ad_password', // password for above
// Query to retrieve and filter the users from AD
// Example: retrieve all users from the AD Group "iTop Users"
'ldap_query' => '(&(objectCategory=user)(memberOf=CN=iTop Users,CN=Users,DC=combodo,DC=net))',
// Example 2: retrieves ALL the users from AD
// 'ldap_query' => '(&(objectCategory=user))', // Retrieve all users
// Which field to use as the iTop login samaccountname or userprincipalname ?
'login' => 'samaccountname',
//'login' => 'userprincipalname',

running the script
The script can be run only by an iTop administrator.
When your configuration is done, run the script either by pointing your web browser to it
(htp://your_itop_server/webservices/AD_import_accounts.php) or by using the following
command line:
php.exe -q AD_import_accounts.php --auth_user=<iTop_admin_user> --auth_pwd=<iTop_admin_pwd>


2.  下面这个文档修改后,用AD的账户登录不成功啊。

通过配置文件C:\xampp\htdocs\conf\production\config-itop.php,启用LDAP进行密码验证,
$MyModuleSettings = array(
        'authent-ldap' => array (
                'host' => 'X.X.X.X',
                'port' => 389,
                'default_user' => 'XXXX',
                'default_pwd' => '*****',
                'base_dn' => 'ou=Management,ou=Domain Users,dc=XXX,dc=com',
                'user_query' => '(&(uid=%1$s)(inetuserstatus=ACTIVE))',
                'options' => array (
                          17 => 3,
                          8 => 0,
                        ),
        ),







上一篇:关于可以与iTop集成的开源监控工具的使用情况讨论
下一篇:iTop软件实施白皮书v2.0连载3--第1章iTop介绍
lhchlsy2000

写了  篇文章,拥有财富 ,被  人关注

您需要登录后才可以回帖 登录 | 立即注册
B Color Link Quote Code Smilies
jemball 发表于 2014-2-28 10:45:24
先不要急着往ITOP里导入帐号,尝试一下手工建立帐号,看能不能通AD验证密码。

1、你的第二步里设置好,
2、在ITOP里建LDAP外部帐号,试一下,能不能通过AD验证密码来登陆。
手机版|小黑屋|最新100贴|论坛版块|ITIL先锋论坛 |粤ICP备11099876号|网站地图
Powered by Discuz! X3.4 Licensed  © 2001-2017 Comsenz Inc.
返回顶部