BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Support  Installation pr...  Active directory integration
Previous Previous
 
Next Next
New Post 2/5/2008 10:30 AM
Unresolved
User is offline rd007
3 posts
No Ranking


Active directory integration 
Modified By rd007  on 2/5/2008 4:42:46 PM)

Hi - I was able to successfully install bugnet but I am unable to get it to configure right for AD integration. I followed all the steps mentioned in the readme.html document. This is what is happening:

* I have configured in the application setting to use AD for user lookup and have configured the application for windows authentication.

* The authentication is working fine but the users are not getting created even though I followed the steps mentioned in the "enable seamless creation of users" section of "Windows Authentication". Looking at the error log, this is the error message: Logger: BugNET.HttpModules.AuthenticationModule and the message: Unable to add new user domain\user to BugNET application.

* Also when the users login they are unable to see the "add new issue" link.

Can you please help? This is urgent that I get this working since I really want to use Bugnet for our organization.

Thanks!

 
New Post 2/5/2008 4:59 PM
User is offline rd007
3 posts
No Ranking


Re: Active directory integration 

I figured out what was the problem. I downloaded the source and figured out that for "Path" for AD I was using was the full path of LDAP://servername/dc=... instead of just using "dc=bugnetproject,dc=com" because bugnet is prefixing the global catalog look up anyways.

 
New Post 2/5/2008 5:06 PM
User is offline admin
641 posts
bugnetproject.com
1st Level Poster




Re: Active directory integration 

 rd007 wrote

Hi - I was able to successfully install bugnet but I am unable to get it to configure right for AD integration. I followed all the steps mentioned in the readme.html document. This is what is happening:

* I have configured in the application setting to use AD for user lookup and have configured the application for windows authentication.

* The authentication is working fine but the users are not getting created even though I followed the steps mentioned in the "enable seamless creation of users" section of "Windows Authentication". Looking at the error log, this is the error message: Logger: BugNET.HttpModules.AuthenticationModule and the message: Unable to add new user domain\user to BugNET application.

* Also when the users login they are unable to see the "add new issue" link.

Can you please help? This is urgent that I get this working since I really want to use Bugnet for our organization.

Thanks!

Is there any exception with the error message?


Davin Dubeau
BugNET - Core Developer

 
New Post 2/5/2008 5:11 PM
User is offline admin
641 posts
bugnetproject.com
1st Level Poster




Re: Active directory integration 

 rd007 wrote

I figured out what was the problem. I downloaded the source and figured out that for "Path" for AD I was using was the full path of LDAP://servername/dc=... instead of just using "dc=bugnetproject,dc=com" because bugnet is prefixing the global catalog look up anyways.

Ok glad to hear you got it working.  This should go in the help.


Davin Dubeau
BugNET - Core Developer

 
New Post 2/6/2008 1:09 PM
User is offline rd007
3 posts
No Ranking


Re: Active directory integration 

Also I found out that if you are using Kerberos to authenticate, the code is not checking for authentication type == "negotiate"...here is the fix for the function:

void

context_AuthenticateRequest(object sender, EventArgs e)HttpRequest request = HttpContext.Current.Request;HttpResponse response = HttpContext.Current.Response;//get host settings

 

 

bool enabled = HostSettings.GetHostSetting("UserAccountSource") == "ActiveDirectory" || HostSettings.GetHostSetting("UserAccountSource") == "WindowsSAM";//check if windows authentication is enabled in the host settings

 

{

 

request.LogonUserIdentity.AuthenticationType ==

{

 

if (enabled)if (request.IsAuthenticated && (request.LogonUserIdentity.AuthenticationType == "NTLM" ||"Negotiate"))//check if the user exists in the database

 

 

 

{

 

MembershipUser user = UserIT.GetUser(HttpContext.Current.User.Identity.Name);if (user == null)try

{

 

 

UserProperties userprop = GetUserProperties(HttpContext.Current.User.Identity.Name);//create a new user with the current identity and a random password.

 

}

 

{

Log.Error(

}

 

}

}

}

}

UserIT.CreateUser(HttpContext.Current.User.Identity.Name, Membership.GeneratePassword(7, 2), userprop.Email);catch (Exception ex)String.Format("Unable to add new user {0} to BugNET application.",HttpContext.Current.User.Identity.Name),ex);

{

 

 

 

 
Previous Previous
 
Next Next
  Forum  Support  Installation pr...  Active directory integration

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.