Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Base entry

Former Member
0 Kudos

Hi,

Does anyone know how to synchronize the users in active directory, which belong to admin group to SAP R/3 where the users are in different "ou". When I try to synchronize, I can only filter by "ou" using the base entry.

Can I filter by anything other than "ou"?

Thanks

8 REPLIES 8

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Brian,

I am not sure whether I got your question correctly. You will find all users in the Active Directory if you use the root entry of the DIT (Directory Information Tree) as your root entry. You can use a simple Visual Basic script that I just posted.

How to get the 'Base entry' for an LDAP connector from Active Directory?

What do you mean by "I can only filter by "ou" using the base entry" ?

Best regards,

André

ceterum censeo RAP esse utendam

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Brian,

the filtering is actually done by the attribute that is defined as the filter attribute in transaction LDAP.

If you choose an appropriate attribute you can assign values to this attribute only to a certain group of users.

As a result you may use the root entry as the base entry because the LDAP search will only synchronize those users having set the attribute that is defined in your LDAP mapping.

Best regards,

Andre

ceterum censeo RAP esse utendam

0 Kudos

Hello Andre,

I was wondering if you could elaborate on this answer and perhaps give an example of how the specify the filtering based on an AD attribute (I assume this is done in transaction LDAPMAP).

"the filtering is actually done by the attribute that is defined as the filter attribute in transaction LDAP.

If you choose an appropriate attribute you can assign values to this attribute only to a certain group of users.

As a result you may use the root entry as the base entry because the LDAP search will only synchronize those users having set the attribute that is defined in your LDAP mapping."

Thanks a lot

Carlos

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Carlos,

please see "Figure 6 - Mapping of SAP data fields to directory attributes" in my whitepaper I[ Integration of SAP central user administration with Microsoft Active Directory|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8302a929-0501-0010-05b5-d48f544bc572].

Best regards,

André

ceterum censeo RAP esse utendam

0 Kudos

Thanks, Andre. I'll check it out.

Carlos

former_member332274
Discoverer
0 Kudos

Thanks Andre,

We have used your advice and configured for testing. We've managed to sync the users and using one of the fields in the active directory to sync the SAP roles.

The only item is that in the program RSLDAPSYNC_USER where selection of users to be synchronized, we are now trying to filter this by the organization unit (ou).

Wondering if you have come across the filtering within RSLDAPSYNC_USER that enables us to configure in active directory by group members and sync this group of users.

Thanks for the advice. Rgds, Brian

0 Kudos

Hi Brian,

you could write a visual basic script that selects members of a specific group and that sets a users attribute (for example sapUsername or extenstionattribute1).

You could use the following script as a starting point that I have posted as a Wiki.

Best regards,

André

ceterum censeo RAP esse utendam

0 Kudos

I have updated the script.

Best regards,

Andre

ceterum censeo RAP esse utendam