Modify Admin user status in Win Authentication setup

196 views
Skip to first unread message

Isai Rodriguez

unread,
Sep 15, 2014, 4:43:26 PM9/15/14
to bonobo-g...@googlegroups.com
Hi,

I've successfully installed Bonobo GIT on IIS 7 (Server2008 r2) as per the instructions. I've modified web.config to NOT import user accounts as Administrators. QUESTION: in this situation, after a user is imported, how do you modify the user's access and make them an Administrator after the fact?

Thanks for you help!

Isai

Jakub Chodounský

unread,
Sep 19, 2014, 9:47:01 PM9/19/14
to bonobo-g...@googlegroups.com
When you edit a user, put him into administrator role. However, you can do this only from an administrator account, so my recommendation is to firstly import one as an administrator, then turn off administrator import and control administrator roles from this account.

Isai Rodriguez

unread,
Sep 24, 2014, 2:20:49 PM9/24/14
to bonobo-g...@googlegroups.com
Thank's Jakub but I actually thought of that. Tried it but it doesn't work.

Jakub Chodounský

unread,
Sep 26, 2014, 4:55:34 PM9/26/14
to bonobo-g...@googlegroups.com
Which part didn't work for you? Do you have at least one administrator account that you can access?

Isai Rodriguez

unread,
Sep 29, 2014, 4:57:45 PM9/29/14
to bonobo-g...@googlegroups.com
Well this is what I did. I was able to setup the "Basic" authentication and all works well. No problems there. Then I setup the secondary instance to tie it into AD but after I do, I'm not able to administer the system. I can access the URL however, all I see in my web browser are any repositories that the user was granted access to. If I change the initial instance back to Basic (ie. AuthenticationMode="None"), then I'm able to login with the default "Admin" login and password. When I login with the default "Admin" account, I can see the domain user that was imported from AD and set that user to Admin. I switch back to Windows authentication and try to access the GIT URL (ie. http://myserver/bonobo.git.server.interface OR http://mysever/bonobo.git.server) again with the AD credentials I just designated as Admin, and although I'm able to access the interface, I don't have the "Admin" buttons (ie. Users, Settings, etc) nor does the "LogOut" button work.

Have you come across this in the past? I can post my web.config files for you to review if you think it would help. I can also post screen shots if that'll help you understand what my issue is. Let me know. I really like this project and would love to make it work properly.

Thanks for all your time and help!

Jakub Chodounský

unread,
Sep 30, 2014, 1:48:28 AM9/30/14
to bonobo-g...@googlegroups.com
Are both instances pointing to the same database file?

Isai Rodriguez

unread,
Sep 30, 2014, 10:58:47 AM9/30/14
to bonobo-g...@googlegroups.com
I'm looking under "<connectionStrings>" within the web.config file of both instances and it seems as if they are NOT set the same. Is this what you're referring to when you ask "are they pointing to the same db" or am I looking at the wrong key?

Jakub Chodounský

unread,
Oct 4, 2014, 11:52:43 PM10/4/14
to bonobo-g...@googlegroups.com
They should point to the same file, they don't have to be exactly the same. Can you please post your connection string settings and your installation paths of both applications?

Isai Rodriguez

unread,
Oct 7, 2014, 5:59:37 PM10/7/14
to bonobo-g...@googlegroups.com
Ok.

So here are the relevant settings from the Interface application:

  <appSettings>
    <!--<add key="webpages:Enabled" value="false" />-->
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    <add key="UserConfiguration" value="D:\WEBAPP1\gitadmin\App_Data\config.xml" />
    <add key="DefaultRepositoriesDirectory" value="D:\WEBAPP1\gitadmin\App_Data\Repositories" />
    <add key="GitPath" value="D:\WEBAPP1\gitadmin\App_Data\Git\git.exe" />
    <add key="GitServerPath" value="https://enggitserver01/git/" />
    <add key="ShouldImportWindowsUserAsAdministrator" value="false" />
  </appSettings>

  <connectionStrings>
    <!--<add name="BonoboGitServerContext" connectionString="Data Source=C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Bonobo.Git.Server.db" providerName="System.Data.SQLite" />-->
    <add name="BonoboGitServerContext" connectionString="Data Source=D:\WEBAPP1\gitadmin\App_Data\Bonobo.Git.Server.db" providerName="System.Data.SQLite" />
    <!--<add name="BonoboGitServerContext" connectionString="Server=.;Database=bonobogit;Integrated Security=True;" providerName="System.Data.SqlClient" />-->
  </connectionStrings>

And here are the relevant settings from the original application:

  <appSettings>
    <!--<add key="webpages:Enabled" value="false" />-->
    <add key="ClientValidationEnabled" value="true" />
    <add key="UnobtrusiveJavaScriptEnabled" value="true" />

    <add key="UserConfiguration" value="D:\WEBAPP1\gitadmin\App_Data\config.xml" />
    <add key="DefaultRepositoriesDirectory" value="D:\WEBAPP1\gitadmin\App_Data\Repositories" />
    <add key="GitPath" value="D:\WEBAPP1\gitadmin\App_Data\Git\git.exe" />

    <add key="ShouldImportWindowsUserAsAdministrator" value="false" />
  </appSettings>

  <connectionStrings>
    <!--<add name="BonoboGitServerContext" connectionString="Data Source=C:\inetpub\wwwroot\Bonobo.Git.Server\App_Data\Bonobo.Git.Server.db" providerName="System.Data.SQLite" />-->
    <add name="BonoboGitServerContext" connectionString="Data Source=|DataDirectory|Bonobo.Git.Server.db" providerName="System.Data.SQLite" />
    <!--<add name="BonoboGitServerContext" connectionString="Server=.;Database=bonobogit;Integrated Security=True;" providerName="System.Data.SqlClient" />-->
  </connectionStrings>


Thanks! I appreciate your time and help.

Jakub Chodounský

unread,
Oct 12, 2014, 2:28:37 AM10/12/14
to bonobo-g...@googlegroups.com
If the original application is on the D:\WEBAPP1\gitadmin than everything looks ok from the db configuration point of view.

Isai Rodriguez

unread,
Oct 14, 2014, 3:24:04 PM10/14/14
to bonobo-g...@googlegroups.com
Thanks for your help Jakub. I think I've firgured out my particular issue. I seems that I misconfigured the "GitServerPath" value in the "appSettings" of my INTERFACE instance. Originally I had it pointing to https://enggitserver01/git when it should have been https://enggitserver01/gitadmin (as per my configuration, '/gitadmin' is the BASIC instance) For my particular scenario, I ended up pointing the "GitServerPath" value in my Interface instance to https://<Server_IP_Address/gitadmin>. I opted to go with NO DNS resolution because of strict corporate environment restrictions therefore an FQDN such as https://enggitserver01 would NOT suffice.

Again, I appreciate your second set of eyes on this issue for me. Hopefully this will be helpful to all. Thanks for your time and insight!

~Isai
Reply all
Reply to author
Forward
0 new messages