Highlighted

securely getting orphan users LDAP

Avatar

Avatar

何塞

Avatar

何塞

何塞

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

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

31-01-2018

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