Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
DBM User Authentication
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. squid user authentication problem!!!!!!!!!!!!pls help
    By swapnil in forum Linux Distros
    Replies: 2
    Last Post: 06-02-2010, 04:31 PM
  2. Net Access User Authentication
    By rahul_khatavkar in forum Linux - Software, Applications & Programming
    Replies: 12
    Last Post: 10-30-2009, 07:10 PM
  3. Postfix SMTP authentication
    By lasanthaindika in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 10-28-2007, 04:04 AM
  4. NT authentication for SQUID
    By waynefourie in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 06-22-2004, 02:06 PM
  5. Public Authentication
    By Ashcrow in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 12-19-2002, 05:04 AM

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
  •