Using JNDI to Get the User Group Name in Windows XP

I heard — and I'm not sure whether it was from a trusted source or from whoever actually did it — that JNDI can be used to access the user group name in windows. I am using Windows XP. I'm not sure how this works, but it sounds like windows use the active directory to manage groups (can someone confirm?), And JNDI can access it to get the name of the user group. When I say “group”, I mean a group on a computer. As an "administrator" or "user".

Does anyone know how to do this? Has anyone done this? Is this an easy task?

+3
source share
3 answers

You can use JNDI as an API to access LDAP, where user / group information is often stored.

I would try to provide you with more detailed information, but I'm really not an expert in this. Instead, I would recommend you take a look at how Tomcat does this by looking at its JNDIRealm: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JNDIRealm

+1
source

I have an idea of ​​what this can do for this, but have not tested my theory yet.

Active Directory supports LDAP access, so perhaps you can use the JNDI and LDAP tutorials to access Active Directory.

Wikipedia Active Directory , , , your ( ) . Microsoft Windows, XP, .

0

You can also try to do this through WMI. This does not seem easy , and of course it will require convenient help from your sysadmin.

0
source

Source: https://habr.com/ru/post/1702352/


All Articles