Skip to Content
0

Creating a new user in LDAP using SAP-RFC

Oct 04, 2017 at 10:31 AM

80

avatar image

Hi all,

I am confused here.

Requirement is : We have a Z txn in some client where the Current user fill in some fields in this Z txn, then at end clicks a button and a user profile get created in Active Directory.

Basically I am asking how to create a new users in AD through ABAP RFC’s .

Not a much of SAP documentation in these RFC…

Now, SAP documentations mentioned LDAP Server Mapping !!! . Not sure if I have to do the mapping part…

RFC I am trying to use

‘LDAP_OBJECT_CREATE’… but this RFC gives me error that no Mapping exist !. Why should I do a mapping if I am trying to create from some a Z fields!! What to map to !.

I have tried first to use RFC ‘LDAP_CREATE’….but no success .. I think this RFC is only for creating attributes , right ? .

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Matthew Billingham
Oct 08, 2017 at 06:16 PM
1

Look at program RSLDAPSYNC_USER. You only need to do LDAP mapping if you're using this program. If you're doing it yourself, you'll need to figure out how that program uses the function modules. It's not to difficult to figure out.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Thank you ... I am still facing difficulty... documentation is near 0 for these Fm

0

Yes, there is no documentation. That why you have do some analysis on RSLDAPSYNC_USER. Try running it in debug, for example, with some mappings set up in LDAPMAP (which is documented). The FM are not, in fact, that difficult to use. You just have to get the order right.

0
Sami Alyasin Oct 25, 2017 at 04:50 AM
0

@harald.reiter2

Hi Harald, Can you help in this. I saw you have answered similar post before. :) ... I need the program you have sent in that post.
Share
10 |10000 characters needed characters left characters exceeded