{"id":5002435,"date":"2014-06-12T12:59:55","date_gmt":"2014-06-12T12:59:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/feature-request-for-differently-structured-ldap-server\/"},"modified":"2016-08-21T21:28:46","modified_gmt":"2016-08-21T21:28:46","slug":"feature-request-for-differently-structured-ldap-server","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/feature-request-for-differently-structured-ldap-server\/","title":{"rendered":"Feature request for differently structured LDAP server"},"content":{"rendered":"<p>I&#8217;m currently working on setting up a WP site for a new project. Login is through CAS, then fetching data from an OpenLDAP server. This LDAP server has slightly different attributes than what CAS Maestro expects. For example, it uses &#8220;cn&#8221; instead of &#8220;uid&#8221; and has name split into &#8220;givenName&#8221; and &#8220;sn&#8221; (first and last name) instead of &#8220;displayname&#8221;. <\/p>\n<p>It is fairly easy for me as a developer to modify the code to work with the OpenLDAP server (and with those minor modifications it works great by the way). However; it would require me to make the same modifications after each upgrade, introducing the risk of it being forgotten (for example by a system administrator applying a security update). <\/p>\n<p>I would therefore be grateful if the attribute names could be added as modifiable options in the configuration. At least for &#8220;uid&#8221;\/&#8221;cn&#8221; and &#8220;mail&#8221; due to mail being a required field in WP, and uid\/cn is required to find that value. <\/p>\n<p>Having attributes for firstname\/lastname as options is not that important to me, but I think that too would benefit from being easily modifiable. Especially since the current way of splitting &#8220;displayname&#8221; only works reliably when the name is in the form &#8220;Firstname Lastname&#8221;. Any name with more than one first or last name &#8211; or when firstname and lastname are reversed &#8211; will be mapped incomplete or wrong.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/cas-maestro\/<\/p>\n","protected":false},"template":"","class_list":["post-5002435","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5002435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5002435\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5002435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}