From 93f4729cdfc856d2a3b155bcf3e97f85b47ce760 Mon Sep 17 00:00:00 2001 From: James Moger Date: Sun, 4 Dec 2011 16:55:42 -0500 Subject: Implemented ConfigUserService. Fixed and deprecated FileUserService. --- distrib/gitblit.properties | 5 +++-- distrib/users.conf | 4 ++++ distrib/users.properties | 3 --- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 distrib/users.conf delete mode 100644 distrib/users.properties (limited to 'distrib') diff --git a/distrib/gitblit.properties b/distrib/gitblit.properties index 34361efc..39e47885 100644 --- a/distrib/gitblit.properties +++ b/distrib/gitblit.properties @@ -50,13 +50,14 @@ web.authenticateAdminPages = true # SINCE 0.5.0 web.allowCookieAuthentication = true -# Either the path to a simple user properties file +# Either the full path to a user config file (users.conf) +# OR the full path to a simple user properties file (users.properties) # OR a fully qualified class name that implements the IUserService interface. # Any custom implementation must have a public default constructor. # # SINCE 0.5.0 # RESTART REQUIRED -realm.userService = users.properties +realm.userService = users.conf # How to store passwords. # Valid values are plain, md5, or combined-md5. md5 is the hash of password. diff --git a/distrib/users.conf b/distrib/users.conf new file mode 100644 index 00000000..e9dbd83d --- /dev/null +++ b/distrib/users.conf @@ -0,0 +1,4 @@ +[user "admin"] + password = admin + role = "#admin" + role = "#notfederated" diff --git a/distrib/users.properties b/distrib/users.properties deleted file mode 100644 index 009c8e3a..00000000 --- a/distrib/users.properties +++ /dev/null @@ -1,3 +0,0 @@ -## Gitblit realm file format: username=password,\#permission,repository1,repository2... -#Fri Jul 22 14:27:08 EDT 2011 -admin=admin,\#admin,\#notfederated -- cgit v1.2.3