好久没有技术贴了,盖因为公司的产品工作搞得我欲死欲生。幸好上周商务的同时给我找了一个搭建CRM的活儿。这活儿是晓华推荐的,因为我以前公司用过SugarCRM。那时是王征同学配置的,现在他项目太紧,我就自己搞了。
安装配置没什么好说的,成熟的产品了,很容易搞定。稍微说一下SugarCRM和Active Directory的集成。公司OA都基于MS的Exchange,为了减少帐户管理的麻烦,所以后面上的管理系统都走Exchange的Active Directory认证。挺好的,比每个系统套自己的用户方便多了,而且Jira、Confluence等对LDAP的支持都很好。
SugarCRM和AD的集成主要参考了:http://www.sugarcrm.com/wiki/index.php?title=Integrating_SugarCRM_with_Windows_Active_Directory
在Sugar的后台“User password”中设置如下:
Click Enable LDAP
In Server enter the FQDN of your Active Directory Server , eg hq.example.com
In Port enter 389
In Base DN, enter OU=Users,DC=hq,DC=example,DC=com, where the OU corresponds with the location of your users.
In Bind Attribute, enter userPrincipalName
In Login Attribute, enter samaccountname
In Authenticated User, enter username@hq.example.com, where username is a user you’ve added for the purpose of authenticating users.
In Authenticated Password, enter the password of the user
后来遇到的问题是“LDAP Error: Extensions not loaded”,经查是这台linux上的PHP没有安装LDAP模块,装上就万事大吉了。