diff --git a/src/main/java/de/hsfulda/informatik/LdapSync.java b/src/main/java/de/hsfulda/informatik/LdapSync.java index 8a56f59..cb2a9c0 100644 --- a/src/main/java/de/hsfulda/informatik/LdapSync.java +++ b/src/main/java/de/hsfulda/informatik/LdapSync.java @@ -127,7 +127,9 @@ public class LdapSync { e.addAttribute(new Attribute("loginShell", properties.getProperty("sync.dst.shell"))); } e.addAttribute(new Attribute("homeDirectory", String.format(properties.getProperty("sync.dst.home"), cn))); - e.addAttribute(new Attribute("userPassword", "{SASL}" + cn)); + if (properties.getProperty("sync.dst.sasl-password", "false").equals("true")) { + e.addAttribute(new Attribute("userPassword", "{SASL}" + cn)); + } e.addAttribute(new Attribute("seeAlso", s.getDN())); return e;