Results 1 to 5 of 5

Thread: DBM User Authentication

  1. #1

    DBM User Authentication

    Hi all,

    I set apache with directory authentication. But whenever I access the folder which provide access authentication, the window which ask for username and password indeed pop-up [seems ready to accept authentication] but whenever I login using the accounts which I previously made / allowed
    to access my private directory It just won't make the user pass.

    I invoked the following to see if indeed the users were made and it provides:

    # /usr/sbin/dbmmanage /etc/httpd/dbmpasswd view
    user1:R3b5cytY6RH0o
    ruser2:tLmz9AB0i5Us6

    Also, here's my http.conf entries

    <Directory /var/www/html/private/>
    Options None
    AllowOverride AuthConfig
    AuthName "Restricted Area"
    AuthType Basic
    AuthDBMType GDBM
    AuthDBMUserFile /etc/httpd/dbmpasswd
    require valid-user user1 user2
    </Directory>

    I provided a chmod 640 access permission and chown root.www on the /etc/httpd/dbmpasswd file. But nothing seem to give good news.
    Httpd restart produce no error. HTTP access.log and error.log likewise did not give any errors.

    It seems that the entries "AuthDBMUserFile /etc/httpd/dbmpasswd" was not giving any effect even if I restarted the http service.

    I'm stuck for so many weeks now figuring-out the problem. Hope you expert out there can contribute a solution to my BIG PROBLEM.

    A million 10ks in advance.

  2. #2

    Re:DBM User Authentication

    Not sure about AuthDBM, but the regular auth_mod like the password file to be in your path. Try adding /etc/httpd/ into yuor path, and see what happens.

  3. #3

    Re:DBM User Authentication

    [quote author=Master Copy link=board=1;threadid=8102;start=0#msg73684 date=1068534556]
    Not sure about AuthDBM, but the regular auth_mod like the password file to be in your path. Try adding /etc/httpd/ into yuor path, and see what happens.
    [/quote]

    I'm sorry for my ignorance. But what do you mean by "try adding /etc/httpd/ into your path"?

    What I know is that AuthDBMUserFile /etc/httpd/dbmpasswd directive sets the path to the password file created under dbmpasswd. But whenever the restricted file / directory is being access it just don't provide the proper authentication.

  4. #4

    Re:DBM User Authentication

    Under root, add /etc/httpd/ in your .bashrc in the PATH= section. Relogin with a terminal as root or su, type 'echo $PATH' to make sure that directory is in there now. Restart Apache so it sees that directory.

  5. #5

    Re:DBM User Authentication

    [quote author=Master Copy link=board=1;threadid=8102;start=0#msg73703 date=1068586032]
    Under root, add /etc/httpd/ in your .bashrc in the PATH= section. Relogin with a terminal as root or su, type 'echo $PATH' to make sure that directory is in there now. Restart Apache so it sees that directory.
    [/quote]

    I fixed the error : )

    I modify the entry:
    AuthDBMType GDBM

    to:
    AuthDBMType DB

    Now, users can authenticate.

    Thanks ALOT!

Similar Threads

  1. vsftpd : cannot login with non-anonymous user ...
    By debellez in forum Linux - Hardware, Networking & Security
    Replies: 8
    Last Post: 05-10-2006, 07:12 PM
  2. Create and Configure User Accounts in Windows XP
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 06:48 AM
  3. Live Communications Server 2005 Glossary
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 08:16 PM
  4. pop(pam_unix)[4920]: authentication failure
    By infinite_root in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 11-25-2003, 08:50 AM
  5. MySQL user question
    By mcdougrs in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-08-2002, 11:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •