[Resolved] How to change default settings for LDAP user?

Need help? Post your questions here.

Moderator: moderators

[Resolved] How to change default settings for LDAP user?

Postby lovebags » Tue Jan 27, 2015 12:04 pm

Starting from an empty user database, is there a way to change the default user settings for all LDAP users that get created in Subsonic? For example when I click on the checkbox "User is allowed to download files" and hit save it tells me I am missing a username and password but I am using LDAP to create the new users automatically (In "Advanced") so just want this setting to be the default state.
Last edited by lovebags on Fri Jan 30, 2015 1:18 am, edited 1 time in total.
User avatar
lovebags
 
Posts: 86
Joined: Wed Feb 02, 2011 1:49 am

Re: How to change default settings for LDAP user?

Postby lovebags » Fri Jan 30, 2015 1:18 am

This can be changed in the backend by inserting the appropriate user_role number into the database. In this case I'm adding each user the ability to download files (id=2)

Access the /db.view page from your domain

Enter the following commands into the text box:

1) delete from user_role where role_id = 2
2) Press "ok" then type
3) insert into user_role (username, role_id) select distinct(username), 2 from user_role
4) Press "ok"

All users will then have the ability to download files. Since new LDAP users will be continuously created over time, this procedure needs to be repeated regularly to keep the appropriate settings up to date.
User avatar
lovebags
 
Posts: 86
Joined: Wed Feb 02, 2011 1:49 am

Re: [Resolved] How to change default settings for LDAP user?

Postby lovebags » Wed Jul 22, 2015 11:34 am

This procedure can only be done if no music is playing on the server otherwise it will bring up an error in the third step.
User avatar
lovebags
 
Posts: 86
Joined: Wed Feb 02, 2011 1:49 am


Return to Help

Who is online

Users browsing this forum: No registered users and 7 guests