| Author |
apache/httpd using OS passwords?
|
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
Is it possible to use the Linux/UNIX operating system password for login? (I suspect the answer is no, but no harm in asking.)
What I'm really trying to accomplish - be able to access subversion at the command line without having to enter a password (so it can be run unattended.)
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3673
|
|
Jeanne Boyarsky wrote:What I'm really trying to accomplish - be able to access subversion at the command line without having to enter a password (so it can be run unattended.)
You mean doing "svn checkout" etc.. from command line ? Or exposing the svn through httpd ?
|
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14572
|
|
Can. Do.
Apache supports a whole raft of plug-in authentication modules.
One thing to considers, however, is "which" login you want to use. What you're actually implying is that you want to use the userid/password for that particular server machine.
I use LDAP authentication on my machines (courtesy of PAM), so there's a master database for the user logins instead of maintaining logins on a per-machine basis. It makes user administration simpler and scales well. And the users don't end up with a different password on every machine - unless I make an exception. My root accounts are not authenticated against LDAP because I don't want someone who discovers the root password to end up with the keys to the whole farm.
For LDAP authentication, I use the mod_authz module.
However, I just reread that, and subversion puts an extra spin on it. I am, in fact, using LDAP mod_authz as my subversion credentials supplier since I use the Apache server interface for both command line and for Eclipse. However, if you use the Subversion command-line client, it should prompt you once and remember thereafter if I'm not hallucinating too much. The information gets stored in the ~/.subversion directory.
If it turns out I'm mis-remembering, you should still be able to set up prompt-free access using a security certificate.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
Yes. Doing "svn checkout".
Tim: Thanks for a host of things to try on Monday.
|
 |
 |
|
|
subject: apache/httpd using OS passwords?
|
|
|