|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.tools.security.ActiveDirectoryImporter
public class ActiveDirectoryImporter
This class provides the functionality to synchronize the User and
Group instances stored in a SecurityManager with an
ActiveDirectory-Server.
Synchronization involves four steps:
SecurityManager are undone.
| Constructor Summary | |
|---|---|
ActiveDirectoryImporter(Properties config)
Constructs a new ADExporter -instance. |
|
| Method Summary | |
|---|---|
void |
abortChanges()
Aborts the synchronization process and undoes all changes. |
(package private) void |
checkSubadminRoleValidity()
Checks subadmin-role validity (each user one role max). |
void |
commitChanges()
Ends the synchronization process and commits all changes. |
static void |
main(String[] args)
|
static void |
sendError(Exception e)
Sends an eMail to inform the admin that something went wrong. |
void |
sendLog()
Sends an eMail with a log of the transaction. |
(package private) HashMap |
synchronizeGroups()
Synchronizes the AD's group objects with the SecurityManager's group objects. |
(package private) void |
synchronizeUsers(HashMap groups)
Synchronizes the AD's user objects with the SecurityManager's user objects. |
(package private) void |
updateSecAll()
Updates the special group "SEC_ALL" (contains all users). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ActiveDirectoryImporter(Properties config)
throws NamingException,
GeneralSecurityException
ADExporter -instance.
config -
NamingException
GeneralSecurityException| Method Detail |
|---|
HashMap synchronizeGroups()
throws NamingException,
IOException,
UnauthorizedException,
GeneralSecurityException
NamingException
IOException
GeneralSecurityException
UnauthorizedException
void synchronizeUsers(HashMap groups)
throws NamingException,
IOException,
UnauthorizedException,
GeneralSecurityException
groups -
NamingException
IOException
GeneralSecurityException
UnauthorizedException
void updateSecAll()
throws GeneralSecurityException
GeneralSecurityException
void checkSubadminRoleValidity()
throws ManagementException,
GeneralSecurityException
ManagementException
GeneralSecurityExceptionpublic void abortChanges()
public void commitChanges()
public static void sendError(Exception e)
NOTE: This is static, because it must be usable even when the construction of the ADExporter failed.
e - public void sendLog()
public static void main(String[] args)
throws Exception
args -
Exception
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net