#2: Re: urgent help needed
Posted on 2008-04-22 10:01:25 by Mohammed Salih
Hi Sayed,
Did you check if the directory /user/lib/cgi-bin/mine is having an
AllowOverride AuthConfig in the apache configuration.
Example:
<Directory "/user/lib/cgi-bin/mine">
AllowOverride AuthConfig
</Directory>
OR
<Directory "/user/lib/cgi-bin/mine">
AllowOverride All
</Directory>
to allow all .htaccess-able directives.
Cheers
Salih
On Tue, Apr 22, 2008 at 11:37 AM, syed mehdi <smmehadi@gmail.com> wrote:
> just wanted to know why LDAP authentication is not working for me in given
> case (i have apache2 installed on my ubuntu 606):
> i have placed .htaccess with these contents in /user/lib/cgi-bin/mine:
> AuthType Basic
> AuthName 'LDAP Login (Please do not add domainname\\ before username)'
> AuthLDAPURL
> ldap://xyz.company.com:543/ou=people,o=company.com?uid?sub?( objectClass=*)
>
> <Files "evaluatequery.py">
> require valid-user
> </Files>
>
> and whenever i am trying to access url (which executes evaluatequery.py) :
> http://localhost/cgi-bin/mine/evaluatequery.py
> i am not asked for ldap authentication, though the script gets executed
> successfully.
>
> please help
>
> Thanks & Regards
> Syed
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Report this message |
#3: Re: urgent help needed
Posted on 2008-04-22 10:45:22 by syed mehdi
------=_Part_1111_24060202.1208853922740
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Thanks salih,
i added the directive
<Directory "/user/lib/cgi-bin/mine">
AllowOverride AuthConfig
</Directory>
in config file after line: AccessFileName .htaccess,
but now while accessing the same url i am getting the error as:
[Tue Apr 22 14:11:28 2008] [alert] [client 127.0.0.1]
/usr/lib/cgi-bin/mine/.htaccess: Invalid command 'AuthLDAPURL', perhaps
mis-spelled or defined by a module not included in the server configuration
though the command is correct.
regards
syed
On Tue, Apr 22, 2008 at 1:31 PM, Mohammed Salih <linusali@gmail.com> wrote:
> Hi Sayed,
>
> Did you check if the directory /user/lib/cgi-bin/mine is having an
> AllowOverride AuthConfig in the apache configuration.
>
> Example:
>
> <Directory "/user/lib/cgi-bin/mine">
> AllowOverride AuthConfig
> </Directory>
>
> OR
>
> <Directory "/user/lib/cgi-bin/mine">
> AllowOverride All
> </Directory>
>
> to allow all .htaccess-able directives.
>
> Cheers
> Salih
>
> On Tue, Apr 22, 2008 at 11:37 AM, syed mehdi <smmehadi@gmail.com> wrote:
> > just wanted to know why LDAP authentication is not working for me in
> given
> > case (i have apache2 installed on my ubuntu 606):
> > i have placed .htaccess with these contents in /user/lib/cgi-bin/mine:
> > AuthType Basic
> > AuthName 'LDAP Login (Please do not add domainname\\ before username)'
> > AuthLDAPURL
> > ldap://
> xyz.company.com:543/ou=people,o=company.com?uid?sub?(objectC lass=*)<http://xyz.company.com:543/ou=people,o=company.com?uid?sub?%28objectClass=*%29>
> >
> > <Files "evaluatequery.py">
> > require valid-user
> > </Files>
> >
> > and whenever i am trying to access url (which executes evaluatequery.py)
> :
> > http://localhost/cgi-bin/mine/evaluatequery.py
> > i am not asked for ldap authentication, though the script gets executed
> > successfully.
> >
> > please help
> >
> > Thanks & Regards
> > Syed
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------=_Part_1111_24060202.1208853922740
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Thanks salih,<br>i added the directive<br>
<Directory "/user/lib/cgi-bin/mine"><br>
AllowOverride AuthConfig<br>
</Directory><br>in config file after line: AccessFileName .htaccess,<br>but now while accessing the same url i am getting the error as:<br>[Tue Apr 22 14:11:28 2008] [alert] [client <a href="http://127.0.0.1">127.0.0.1</a>] /usr/lib/cgi-bin/mine/.htaccess: Invalid command 'AuthLDAPURL', perhaps mis-spelled or defined by a module not included in the server configuration<br>
though the command is correct.<br>regards<br>syed<br><br><div class="gmail_quote">On Tue, Apr 22, 2008 at 1:31 PM, Mohammed Salih <<a href="mailto:linusali@gmail.com">linusali@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Sayed,<br>
<br>
Did you check if the directory /user/lib/cgi-bin/mine is having an<br>
AllowOverride AuthConfig in the apache configuration.<br>
<br>
Example:<br>
<br>
<Directory "/user/lib/cgi-bin/mine"><br>
AllowOverride AuthConfig<br>
</Directory><br>
<br>
OR<br>
<br>
<Directory "/user/lib/cgi-bin/mine"><br>
AllowOverride All<br>
</Directory><br>
<br>
to allow all .htaccess-able directives.<br>
<br>
Cheers<br>
Salih<br>
<div><div></div><div class="Wj3C7c"><br>
On Tue, Apr 22, 2008 at 11:37 AM, syed mehdi <<a href="mailto:smmehadi@gmail.com">smmehadi@gmail.com</a>> wrote:<br>
> just wanted to know why LDAP authentication is not working for me in given<br>
> case (i have apache2 installed on my ubuntu 606):<br>
> i have placed .htaccess with these contents in /user/lib/cgi-bin/mine:<br>
> AuthType Basic<br>
> AuthName 'LDAP Login (Please do not add domainname\\ before username)'<br>
> AuthLDAPURL<br>
> ldap://<a href="http://xyz.company.com:543/ou=people,o=company.com?uid?sub?%28objectClass=*%29" target="_blank"> xyz.company.com:543/ou=people,o=company.com?uid?sub?(objectC lass=*)</a><br>
><br>
> <Files "evaluatequery.py"><br>
> require valid-user<br>
> </Files><br>
><br>
> and whenever i am trying to access url (which executes evaluatequery.py) :<br>
> <a href="http://localhost/cgi-bin/mine/evaluatequery.py" target="_blank">http://localhost/cgi-bin/mine/evaluatequery.py</a><br>
> i am not asked for ldap authentication, though the script gets executed<br>
> successfully.<br>
><br>
> please help<br>
><br>
> Thanks & Regards<br>
> Syed<br>
<br>
</div></div> ------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<br>
See <URL:<a href="http://httpd.apache.org/userslist.html" target="_blank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a><br>
" from the digest: <a href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a><br>
For additional commands, e-mail: <a href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a><br>
<br>
</blockquote></div><br>
------=_Part_1111_24060202.1208853922740--
Report this message |
#4: Re: urgent help needed
Posted on 2008-04-22 11:07:05 by Mohammed Salih
Hi Sayed,
The Correct Directive is AuthLDAPUrl not AuthLDAPURL. The directive is
case sensitive. By the way you have to load the module
auth_ldap_module (httpd 2.0), in order to get the functionality.
Apache httpd 2.0 -
http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html#auth ldapurl
Apache httpd 2.2 - http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html
- http://httpd.apache.org/docs/2.2/mod/mod_ldap.html
Cheers
Salih
On Tue, Apr 22, 2008 at 12:45 PM, syed mehdi <smmehadi@gmail.com> wrote:
> Thanks salih,
> i added the directive
>
> <Directory "/user/lib/cgi-bin/mine">
> AllowOverride AuthConfig
> </Directory>
> in config file after line: AccessFileName .htaccess,
> but now while accessing the same url i am getting the error as:
> [Tue Apr 22 14:11:28 2008] [alert] [client 127.0.0.1]
> /usr/lib/cgi-bin/mine/.htaccess: Invalid command 'AuthLDAPURL', perhaps
> mis-spelled or defined by a module not included in the server configuration
> though the command is correct.
> regards
> syed
>
>
>
> On Tue, Apr 22, 2008 at 1:31 PM, Mohammed Salih <linusali@gmail.com> wrote:
> >
> >
> >
> > Hi Sayed,
> >
> > Did you check if the directory /user/lib/cgi-bin/mine is having an
> > AllowOverride AuthConfig in the apache configuration.
> >
> > Example:
> >
> > <Directory "/user/lib/cgi-bin/mine">
> > AllowOverride AuthConfig
> > </Directory>
> >
> > OR
> >
> > <Directory "/user/lib/cgi-bin/mine">
> > AllowOverride All
> > </Directory>
> >
> > to allow all .htaccess-able directives.
> >
> > Cheers
> > Salih
> >
> >
> >
> >
> > On Tue, Apr 22, 2008 at 11:37 AM, syed mehdi <smmehadi@gmail.com> wrote:
> > > just wanted to know why LDAP authentication is not working for me in
> given
> > > case (i have apache2 installed on my ubuntu 606):
> > > i have placed .htaccess with these contents in /user/lib/cgi-bin/mine:
> > > AuthType Basic
> > > AuthName 'LDAP Login (Please do not add domainname\\ before username)'
> > > AuthLDAPURL
> > >
> ldap://xyz.company.com:543/ou=people,o=company.com?uid?sub?( objectClass=*)
> > >
> > > <Files "evaluatequery.py">
> > > require valid-user
> > > </Files>
> > >
> > > and whenever i am trying to access url (which executes evaluatequery.py)
> :
> > > http://localhost/cgi-bin/mine/evaluatequery.py
> > > i am not asked for ldap authentication, though the script gets executed
> > > successfully.
> > >
> > > please help
> > >
> > > Thanks & Regards
> > > Syed
> >
> > ------------------------------------------------------------ ---------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Report this message |
#5: Re: urgent help needed
Posted on 2008-04-22 11:44:13 by syed mehdi
------=_Part_1304_5898891.1208857453939
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
thank you very much salih, it worked.
On Tue, Apr 22, 2008 at 2:37 PM, Mohammed Salih <linusali@gmail.com> wrote:
> Hi Sayed,
>
> The Correct Directive is AuthLDAPUrl not AuthLDAPURL. The directive is
> case sensitive. By the way you have to load the module
> auth_ldap_module (httpd 2.0), in order to get the functionality.
>
> Apache httpd 2.0 -
> http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html#auth ldapurl
> Apache httpd 2.2 -
> http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html
> -
> http://httpd.apache.org/docs/2.2/mod/mod_ldap.html
> Cheers
> Salih
>
> On Tue, Apr 22, 2008 at 12:45 PM, syed mehdi <smmehadi@gmail.com> wrote:
> > Thanks salih,
> > i added the directive
> >
> > <Directory "/user/lib/cgi-bin/mine">
> > AllowOverride AuthConfig
> > </Directory>
> > in config file after line: AccessFileName .htaccess,
> > but now while accessing the same url i am getting the error as:
> > [Tue Apr 22 14:11:28 2008] [alert] [client 127.0.0.1]
> > /usr/lib/cgi-bin/mine/.htaccess: Invalid command 'AuthLDAPURL', perhaps
> > mis-spelled or defined by a module not included in the server
> configuration
> > though the command is correct.
> > regards
> > syed
> >
> >
> >
> > On Tue, Apr 22, 2008 at 1:31 PM, Mohammed Salih <linusali@gmail.com>
> wrote:
> > >
> > >
> > >
> > > Hi Sayed,
> > >
> > > Did you check if the directory /user/lib/cgi-bin/mine is having an
> > > AllowOverride AuthConfig in the apache configuration.
> > >
> > > Example:
> > >
> > > <Directory "/user/lib/cgi-bin/mine">
> > > AllowOverride AuthConfig
> > > </Directory>
> > >
> > > OR
> > >
> > > <Directory "/user/lib/cgi-bin/mine">
> > > AllowOverride All
> > > </Directory>
> > >
> > > to allow all .htaccess-able directives.
> > >
> > > Cheers
> > > Salih
> > >
> > >
> > >
> > >
> > > On Tue, Apr 22, 2008 at 11:37 AM, syed mehdi <smmehadi@gmail.com>
> wrote:
> > > > just wanted to know why LDAP authentication is not working for me in
> > given
> > > > case (i have apache2 installed on my ubuntu 606):
> > > > i have placed .htaccess with these contents in
> /user/lib/cgi-bin/mine:
> > > > AuthType Basic
> > > > AuthName 'LDAP Login (Please do not add domainname\\ before
> username)'
> > > > AuthLDAPURL
> > > >
> > ldap://
> xyz.company.com:543/ou=people,o=company.com?uid?sub?(objectC lass=*)<http://xyz.company.com:543/ou=people,o=company.com?uid?sub?%28objectClass=*%29>
> > > >
> > > > <Files "evaluatequery.py">
> > > > require valid-user
> > > > </Files>
> > > >
> > > > and whenever i am trying to access url (which executes
> evaluatequery.py)
> > :
> > > > http://localhost/cgi-bin/mine/evaluatequery.py
> > > > i am not asked for ldap authentication, though the script gets
> executed
> > > > successfully.
> > > >
> > > > please help
> > > >
> > > > Thanks & Regards
> > > > Syed
> > >
> > > ------------------------------------------------------------ ---------
> > > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> > >
> > >
> >
> >
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
------=_Part_1304_5898891.1208857453939
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
thank you very much salih, it worked.<br><br><div class="gmail_quote">On Tue, Apr 22, 2008 at 2:37 PM, Mohammed Salih <<a href="mailto:linusali@gmail.com">linusali@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Sayed,<br>
<br>
The Correct Directive is AuthLDAPUrl not AuthLDAPURL. The directive is<br>
case sensitive. By the way you have to load the module<br>
auth_ldap_module (httpd 2.0), in order to get the functionality.<br>
<br>
Apache httpd 2.0 -<br>
<a href="http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html#authldapurl" target="_blank"> http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html#auth ldapurl</a><br>
Apache httpd 2.2 - <a href="http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html" target="_blank">http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html</a><br>
- <a href="http://httpd.apache.org/docs/2.2/mod/mod_ldap.html" target="_blank">http://httpd.apache.org/docs/2.2/mod/mod_ldap.html</a><br>
Cheers<br>
<font color="#888888">Salih<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Tue, Apr 22, 2008 at 12:45 PM, syed mehdi <<a href="mailto:smmehadi@gmail.com">smmehadi@gmail.com</a>> wrote:<br>
> Thanks salih,<br>
> i added the directive<br>
><br>
> <Directory "/user/lib/cgi-bin/mine"><br>
> AllowOverride AuthConfig<br>
> </Directory><br>
> in config file after line: AccessFileName .htaccess,<br>
> but now while accessing the same url i am getting the error as:<br>
> [Tue Apr 22 14:11:28 2008] [alert] [client <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>]<br>
> /usr/lib/cgi-bin/mine/.htaccess: Invalid command 'AuthLDAPURL', perhaps<br>
> mis-spelled or defined by a module not included in the server configuration<br>
> though the command is correct.<br>
> regards<br>
> syed<br>
><br>
><br>
><br>
> On Tue, Apr 22, 2008 at 1:31 PM, Mohammed Salih <<a href="mailto:linusali@gmail.com">linusali@gmail.com</a>> wrote:<br>
> ><br>
> ><br>
> ><br>
> > Hi Sayed,<br>
> ><br>
> > Did you check if the directory /user/lib/cgi-bin/mine is having an<br>
> > AllowOverride AuthConfig in the apache configuration.<br>
> ><br>
> > Example:<br>
> ><br>
> > <Directory "/user/lib/cgi-bin/mine"><br>
> > AllowOverride AuthConfig<br>
> > </Directory><br>
> ><br>
> > OR<br>
> ><br>
> > <Directory "/user/lib/cgi-bin/mine"><br>
> > AllowOverride All<br>
> > </Directory><br>
> ><br>
> > to allow all .htaccess-able directives.<br>
> ><br>
> > Cheers<br>
> > Salih<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On Tue, Apr 22, 2008 at 11:37 AM, syed mehdi <<a href="mailto:smmehadi@gmail.com">smmehadi@gmail.com</a>> wrote:<br>
> > > just wanted to know why LDAP authentication is not working for me in<br>
> given<br>
> > > case (i have apache2 installed on my ubuntu 606):<br>
> > > i have placed .htaccess with these contents in /user/lib/cgi-bin/mine:<br>
> > > AuthType Basic<br>
> > > AuthName 'LDAP Login (Please do not add domainname\\ before username)'<br>
> > > AuthLDAPURL<br>
> > ><br>
> ldap://<a href="http://xyz.company.com:543/ou=people,o=company.com?uid?sub?%28objectClass=*%29" target="_blank"> xyz.company.com:543/ou=people,o=company.com?uid?sub?(objectC lass=*)</a><br>
> > ><br>
> > > <Files "evaluatequery.py"><br>
> > > require valid-user<br>
> > > </Files><br>
> > ><br>
> > > and whenever i am trying to access url (which executes evaluatequery.py)<br>
> :<br>
> > > <a href="http://localhost/cgi-bin/mine/evaluatequery.py" target="_blank">http://localhost/cgi-bin/mine/evaluatequery.py</a><br>
> > > i am not asked for ldap authentication, though the script gets executed<br>
> > > successfully.<br>
> > ><br>
> > > please help<br>
> > ><br>
> > > Thanks & Regards<br>
> > > Syed<br>
> ><br>
> > ------------------------------------------------------------ ---------<br>
> > The official User-To-User support forum of the Apache HTTP Server Project.<br>
> > See <URL:<a href="http://httpd.apache.org/userslist.html" target="_blank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
> > To unsubscribe, e-mail: <a href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a><br>
> > " from the digest: <a href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a><br>
> > For additional commands, e-mail: <a href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a><br>
> ><br>
> ><br>
><br>
><br>
<br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<br>
See <URL:<a href="http://httpd.apache.org/userslist.html" target="_blank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a><br>
" from the digest: <a href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a><br>
For additional commands, e-mail: <a href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a><br>
<br>
</div></div></blockquote></div><br>
------=_Part_1304_5898891.1208857453939--
Report this message |