How do I get smart server to use active directory
I am trying to get active directory to integrate with smart server. From the documentation it seems like I can run the smart server behind an apache instance. I have also loaded the Active Directory integration and this seems to be working. I'm an apache novice so I'm going on trial and error.
It seems like something is going wrong either during the rewrite rule or after it. I can see in the access logs that it is accessing /smart. What I can't see is evidence of the rewrite happening but seeing as it is the rewrite making it go to .py I don't know how to check if it is working.
The problem I have is I always get a 401 error even though I've authenticated.
My apache config is as follows (with a few changes so as not to reveal too many details about my clients network).
<VirtualHost *:9090>
ServerAdmin <email address hidden>
DocumentRoot "c:/apache-
ServerName blahserver.blah.com
ServerAlias blahserver.blah.com blahserver
ErrorLog logs/blah-error.log
CustomLog logs/blah-
<Proxy *>
Order deny,allow
Allow from all
Satisfy all
</Proxy>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
Alias /bzr C:/bzr-
<Directory C:/bzr-
Options Indexes +FollowSymLinks
RewriteEngine On
RewriteBase /bzr
#RewriteRule ^(.*/|)\.bzr/smart$ C:/bzr-
RewriteRule ^(.*/|)\.bzr/smart$ C:/bzr-
AllowOverride All
Options None
Order allow,deny
Allow from all
# module specific
AuthName "Bzr development"
AuthType SSPI
SSPIAuth On
# module is the final authority
SSPIAutho
# only authenticate against DPI no others
SSPIDomain DPI
# keep domain name in userid string
SSPIOmitD
# let non-IE clients authenticate
SSPIOffer
# first we try NTLM authentication and then basic authentication
SSPIBasic
# need to be in dev Group to be able to access bzr
Require group "OurDomain\
</Directory>
Alias C:/bzr-
<Directory C:/bzr-
<Files bzr-smart.py>
</Files>
</Directory>
# Test active directory integration
<Directory "c:/apache-
AllowOverride None
Options None
Order allow,deny
Allow from all
# module specific
AuthName "Bzr development"
AuthType SSPI
SSPIAuth On
# module is the final authority
SSPIAutho
# only authenticate against DPI no others
SSPIDomain DPI
# keep domain name in userid string
SSPIOmitD
# let non-IE clients authenticate
SSPIOffer
# first we try NTLM authentication and then basic authentication
SSPIBasic
# need to be in dev Group to be able to access Subversion
Require group "OurDomain\
</Directory>
</VirtualHost>
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jemsquash
- Solved:
- Last query:
- Last reply: