Browse Source

set password conditionally

main
Dustin Frisch 1 year ago
parent
commit
69ce1d4f1a
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 2
      src/main/java/de/hsfulda/informatik/LdapSync.java

2
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("loginShell", properties.getProperty("sync.dst.shell")));
} }
e.addAttribute(new Attribute("homeDirectory", String.format(properties.getProperty("sync.dst.home"), cn))); e.addAttribute(new Attribute("homeDirectory", String.format(properties.getProperty("sync.dst.home"), cn)));
if (properties.getProperty("sync.dst.sasl-password", "false").equals("true")) {
e.addAttribute(new Attribute("userPassword", "{SASL}" + cn)); e.addAttribute(new Attribute("userPassword", "{SASL}" + cn));
}
e.addAttribute(new Attribute("seeAlso", s.getDN())); e.addAttribute(new Attribute("seeAlso", s.getDN()));
return e; return e;

Loading…
Cancel
Save