Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Context context = new InitialContext();
- String user = (String) context.lookup("cell/persistent/ADBindUser");
- String password = (String) context.lookup("cell/persistent/ADBindPwd");
- Map<String, String> map = new HashMap<String, String>();
- map.put(Constants.MAPPING_ALIAS, "WPSBIND");
- CallbackHandler callbackHandler =new WSMappingCallbackHandler(map, null);
- LoginContext loginContext =
- new LoginContext("DefaultPrincipalMapping", callbackHandler);
- try{
- loginContext.login();
- }catch(LoginException le) {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement