summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-21 15:10:43 +0100
committerSimon Rettberg2017-12-21 15:10:43 +0100
commitaa77ad2c646a3ecd0d848d5649b2dcb2fff88347 (patch)
tree68fbd6dabd6d52d78dcb59fc511fe029b8b50de4
parent[PortScan] Slightly better error message + timeout (diff)
downloadtmlite-bwlp-aa77ad2c646a3ecd0d848d5649b2dcb2fff88347.tar.gz
tmlite-bwlp-aa77ad2c646a3ecd0d848d5649b2dcb2fff88347.tar.xz
tmlite-bwlp-aa77ad2c646a3ecd0d848d5649b2dcb2fff88347.zip
[CreateLdapconfig] Fall back to homeDirectory for home dir if none was given
-rw-r--r--src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java b/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java
index ef9b4af..35cbe31 100644
--- a/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java
+++ b/src/main/java/org/openslx/taskmanager/tasks/CreateLdapConfig.java
@@ -129,6 +129,9 @@ public class CreateLdapConfig extends AbstractTask
if ( Util.isEmpty( mapping.homemount ) && !Util.isEmpty( this.homeattr ) ) {
mapping.homemount = this.homeattr;
}
+ if ( Util.isEmpty( mapping.homemount ) && !"homedirectory".equalsIgnoreCase( mapping.localhome ) ) {
+ mapping.homemount = "homeDirectory";
+ }
if (!this.plainldap) {
mapping.uidnumber = null;
mapping.localhome = null;