Commit 875035d746b83154ade89b80d0fea1cf43bef522
1 parent
07b136e4
changed attributes for active directory ldap server type
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1710 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/administration/usermanagement/addUserBL.php
| ... | ... | @@ -31,7 +31,12 @@ if (checkSession()) { |
| 31 | 31 | $bLdap = false; |
| 32 | 32 | } else { |
| 33 | 33 | //if its using LDAP get these attributes |
| 34 | - $aAttributes = array ("dn", "uid", "givenname", "sn", "mail", "mobile"); | |
| 34 | + // TODO: make these user defined | |
| 35 | + if ($default->ldapServerType == "ActiveDirectory") { | |
| 36 | + $aAttributes = array ("dn", "samaccountname", "givenname", "sn", "mail", "telephonenumber"); | |
| 37 | + } else { | |
| 38 | + $aAttributes = array ("dn", "uid", "givenname", "sn", "mail", "mobile"); | |
| 39 | + } | |
| 35 | 40 | $bLdap = true; |
| 36 | 41 | } |
| 37 | 42 | ... | ... |