Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

securely getting orphan users LDAP

Avatar

Avatar
Validate 10
Level 3
何塞
Level 3

Likes

12 likes

Total Posts

48 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
何塞
Level 3

Likes

12 likes

Total Posts

48 posts

Correct Reply

1 solution
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
何塞
Level 3

31-01-2018

Hi guys,

I found the following example on how to programmatically get the orphan users from my LDAP server:

How to Synchronize User with LDAP

My only concern with this code is that it hardcodes the admin user credentials.

I thought about getting the admin password stored in AEM but passwords in AEM are encrypted so this would not work.

I think that when I make this call from the web JMX console, the post request is using the login-token from the cookie and so it does not need the admin user credentials.

Is there a way to use the login-token from the java code?

Or is there any other way to get the orphan users that does not involve hardcoding admin user credentials?

Thanks in advance,

何塞。

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

31-01-2018

I believe this is the way to perform this use case as its an Adobe document.