X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.security.core%2Fsrc%2Forg%2Fargeo%2Fosgi%2Fuseradmin%2FUserAdminConf.java;h=e909e7aa3d3196f627fe6b3b86a55abe25b1714f;hb=081e25f3b95f41cf1d400f5dc926387e9f92f8aa;hp=2ed7edd98e1dd55aba1703bf8341bce095fc96c3;hpb=563ee18b53fa90f14dc3f443f29f6d020ffdee2b;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.security.core/src/org/argeo/osgi/useradmin/UserAdminConf.java b/org.argeo.security.core/src/org/argeo/osgi/useradmin/UserAdminConf.java index 2ed7edd98..e909e7aa3 100644 --- a/org.argeo.security.core/src/org/argeo/osgi/useradmin/UserAdminConf.java +++ b/org.argeo.security.core/src/org/argeo/osgi/useradmin/UserAdminConf.java @@ -16,10 +16,10 @@ import javax.naming.Context; /** Properties used to configure user admins. */ public enum UserAdminConf { - /** Base DN */ + /** Base DN (cannot be configured externally) */ baseDn("dc=example,dc=com"), - /** URI of the underlying resource */ + /** URI of the underlying resource (cannot be configured externally) */ uri("ldap://localhost:10389"), /** User objectClass */ @@ -52,7 +52,7 @@ public enum UserAdminConf { /** For use as Java property. */ public String property() { - return getPrefix() + name(); + return getPrefix() + '.' + name(); } public String getPrefix() { @@ -75,7 +75,7 @@ public enum UserAdminConf { } public static UserAdminConf local(String property) { - return UserAdminConf.valueOf(property.substring(PREFIX.length())); + return UserAdminConf.valueOf(property.substring(PREFIX.length() + 1)); } /** Hides host and credentials. */