|
Lines 736-748
Link Here
|
| 736 |
{ |
736 |
{ |
| 737 |
list<string> map_attrs = ReadLdapConfEntries ("nss_map_attribute"); |
737 |
list<string> map_attrs = ReadLdapConfEntries ("nss_map_attribute"); |
| 738 |
foreach (string map_attr, map_attrs, { |
738 |
foreach (string map_attr, map_attrs, { |
| 739 |
map_attr = tolower (map_attr); |
739 |
if (issubstring (tolower (map_attr), "uniquemember")) |
| 740 |
if (issubstring (map_attr, "uniquemember")) |
|
|
| 741 |
{ |
740 |
{ |
| 742 |
list<string> attr = splitstring (map_attr, " \t"); |
741 |
list<string> attr = splitstring (map_attr, " \t"); |
| 743 |
if (attr[0]:"" == "uniquemember") |
742 |
if (tolower (attr[0]:"") == "uniquemember") |
| 744 |
{ |
743 |
{ |
| 745 |
member_attribute = attr[1]:member_attribute; |
744 |
member_attribute = attr[1]:member_attribute; |
|
|
745 |
// LDAP needs to know correct attribute name |
| 746 |
if (member_attribute == "uniquemember") |
| 747 |
member_attribute = "uniqueMember"; |
| 746 |
old_member_attribute = member_attribute; |
748 |
old_member_attribute = member_attribute; |
| 747 |
} |
749 |
} |
| 748 |
} |
750 |
} |