×

扫描二维码登录本站

QQ登录

只需一步,快速开始

在ITOP导入AD帐号信息脚本  

标签: 信息
如题,请查收附档。下完后,把ZIP改成TXT

AD_import_accounts.zip

15.1 KB, 下载次数: 533, 下载积分: 威望 -1 , 金钱 -1 , 贡献 -1





上一篇:请问装了绿色版,如何配置itop
下一篇:为什么通知里有个email.test的我在里面测试邮件也是发不出。
jemball

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

您需要登录后才可以回帖 登录 | 立即注册
B Color Link Quote Code Smilies
uykonxu 发表于 2013-10-16 16:14:56
怎么用呢?
jemball 发表于 2013-10-16 17:04:28
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
(http://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>
ltcandly 发表于 2014-2-17 16:07:58
jemball 发表于 2013-10-16 17:04
Edit the configuration array at the beginning of the script to tailor it to your needs:
// Configur ...

你好
:Simulation mode -- no action will be performed
Set the parameter simulation=0 to trigger the actual execution.

Connected to 10.240.1.111 on port 389


Warning: ldap_bind(): Unable to bind to server: Invalid credentials in C:\xampp\htdocs\webservices\AD_import_accounts.php on line 450
Could not bind这是怎么回事?谢谢。
shandy_li 发表于 2014-2-25 18:24:45
运行php -q /usr/local/apache2/htdocs/web/AD_import_accounts.php --auto_user=admin --auth_pwd=password

出现如下结果:
Access restricted or wrong credentials ('')

12345下一页
手机版|小黑屋|最新100贴|论坛版块|ITIL先锋论坛 |粤ICP备11099876号|网站地图
Powered by Discuz! X3.4 Licensed  © 2001-2017 Comsenz Inc.
返回顶部