|
@ -122,9 +122,11 @@ public class LdapSync { |
|
|
e.addAttribute(new Attribute("givenname", s.getAttributeValue("givenName"))); |
|
|
e.addAttribute(new Attribute("givenname", s.getAttributeValue("givenName"))); |
|
|
e.addAttribute(new Attribute("uid", cn)); |
|
|
e.addAttribute(new Attribute("uid", cn)); |
|
|
e.addAttribute(new Attribute("uidNumber", String.valueOf(computeUid(cn, this.userDefinedMappings)))); |
|
|
e.addAttribute(new Attribute("uidNumber", String.valueOf(computeUid(cn, this.userDefinedMappings)))); |
|
|
e.addAttribute(new Attribute("gidNumber", "20")); |
|
|
|
|
|
e.addAttribute(new Attribute("loginShell", "/bin/zsh")); |
|
|
|
|
|
e.addAttribute(new Attribute("homeDirectory", "/Users/" + cn)); |
|
|
|
|
|
|
|
|
e.addAttribute(new Attribute("gidNumber", properties.getProperty("sync.dst.gid", "1000"))); |
|
|
|
|
|
if (properties.getProperty("sync.dst.shell") != null) { |
|
|
|
|
|
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)); |
|
|
e.addAttribute(new Attribute("userPassword", "{SASL}" + cn)); |
|
|
|
|
|
|
|
|
return e; |
|
|
return e; |
|
|