<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LDAP mapping function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ldap-mapping-function-modules/m-p/10379603#M1840517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the answer is that SAPCOMPANYKEY is not filled in AD, so LDAP doesn't pick it up. When I used a user that has that field maintained, it worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 08:19:59 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2014-05-23T08:19:59Z</dc:date>
    <item>
      <title>LDAP mapping function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ldap-mapping-function-modules/m-p/10379602#M1840516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;I've got a working mapping defined like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/458342" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;The function module Z_MAP_LOGONCLASS has the usual interface. In it I read the assigned roles, and any user with a certain role is given the class SUPER, otherwise they get the default class. To get the roles I read from table ATTRIBUTES_LDAP&amp;nbsp; where name = 'SAPROLES'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/458343" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;This all works fine: when I run the synchronisation program users are assigned to the user group/class that goes with their assigned roles.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;Now the problem. I want to do something similar, to set the users timezone on SAP from the supplied company in ldap. So I defined it like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/458344" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;In the function module Z_MAP_TIMEZONE, I try to read SAPCOMPANYKEY from ATTRIBUTES_LDAP - but there is no such entry, so my derivation fails.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;I get the feeling I've missed something basic. Can you give me any hints?&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.800000190734863px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 14:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ldap-mapping-function-modules/m-p/10379602#M1840516</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-05-22T14:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP mapping function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ldap-mapping-function-modules/m-p/10379603#M1840517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the answer is that SAPCOMPANYKEY is not filled in AD, so LDAP doesn't pick it up. When I used a user that has that field maintained, it worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 08:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ldap-mapping-function-modules/m-p/10379603#M1840517</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-05-23T08:19:59Z</dc:date>
    </item>
  </channel>
</rss>

