do not hide password
This commit is contained in:
parent
7bfbf0b8c0
commit
e06cb3dffb
@ -53,7 +53,8 @@ public class MailboxDAO {
|
||||
whereParamsMap.put("name", pac + "-" + localpart);
|
||||
final Object[] rpcResult = (Object[])rpcClient.execute("user.search", xmlRpcParamsList);
|
||||
if (rpcResult.length == 1) {
|
||||
Map<String, Object> userAsMap = (Map<String, Object>) rpcResult[0];
|
||||
@SuppressWarnings("unchecked")
|
||||
final Map<String, Object> userAsMap = (Map<String, Object>) rpcResult[0];
|
||||
return (String) userAsMap.get("name");
|
||||
}
|
||||
throw new MailboxNotFound();
|
||||
@ -68,6 +69,7 @@ public class MailboxDAO {
|
||||
setParamsMap.put("name", pac + "-" + localpart);
|
||||
setParamsMap.put("password", pwGen());
|
||||
setParamsMap.put("comment", comment);
|
||||
@SuppressWarnings("unused")
|
||||
final Object rpcResult = rpcClient.execute("user.add", xmlRpcParamsList);
|
||||
}
|
||||
|
||||
|
@ -65,9 +65,9 @@ public class DirectoryServiceRunner {
|
||||
final DirectoryService directoryService = factory.getDirectoryService();
|
||||
directoryService.setShutdownHookEnabled(true);
|
||||
directoryService.getChangeLog().setEnabled(false);
|
||||
directoryService.setAccessControlEnabled(true);
|
||||
directoryService.setAllowAnonymousAccess(false);
|
||||
directoryService.setPasswordHidden(true);
|
||||
directoryService.setAccessControlEnabled(true);
|
||||
directoryService.setPasswordHidden(false);
|
||||
return directoryService;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user