SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Unhappy .htpasswd encrytion program

    okay I have used .htpasswd and .htaccess on a number of my sites, I am trying to do it for my new site - and I cannot find a program which will encrypt the password for the .htpasswd file.

    Well actually I can find loads but they aren't giving the right encryption!!

    Basically its not working so I went back to check that my password was right, and when I typed in an old password which I already had the encryption for it came out different - I am on my 6th attempt !!

    Anyone got any ideas...

    I need it to work with Sambar server and IIS server eventually..

    Thanks

    Sarah

    Regular user

  2. #2
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here are the types of encryption you can use for htaccess passwords:

    -m Use Apache's modified MD5 algorithm for passwords.
    Passwords encrypted with this algorithm are transport-
    able to any platform (Windows, Unix, BeOS, et cetera)
    running Apache 1.3.9 or later. On Windows and TPF,
    this flag is the default.

    -d Use crypt() encryption for passwords. The default on
    all platforms but Windows and TPF. Though possibly sup-
    ported by htpasswd on all platforms, it is not sup-
    ported by the httpd server on Windows and TPF.

    -s Use SHA encryption for passwords. Faciliates migration
    from/to Netscape servers using the LDAP Directory
    Interchange Format (ldif).

    -p Use plaintext passwords. Though htpasswd will support
    creation on all platforms, the httpd deamon will only
    accept plain text passwords on Windows and TPF.
    http://httpd.apache.org/docs/programs/htpasswd.html
    http://httpd.apache.org/docs/mod/mod_auth.html

    Basically the unix crypt() function should be fine. Apache uses it's own version of MD5 so you have to use the apache htpasswd program to create an MD5 encrypted password. Don't know if that is of any help.
    Last edited by freakysid; Apr 12, 2002 at 04:27.

  3. #3
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't have apache so can't use that but did try the sacrypt feature on my server and that didn't work I think its more that I have a password that is currently working (which I encrypted somehow ages ago) and when I use that with different a username it works just fine BUT trying to use a new password that I have just encrypted (any way) it doesn't

    Going to go and boil my head as I am sure its operator error

    Thanks

    Sarah
    Regular user

  4. #4
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: .htpasswd encrytion program

    Originally posted by Sarah
    I need it to work with Sambar server and IIS server eventually
    IIS doesn't do HTACCESS, so you'll have a hard time trying to get that to work.

  5. #5
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    oh... so what would I use for IIS (not an IIS person never used it)

    thanks though saved me the hassle of getting it to work and then uploading it to find its all wrong !

    [ just did a quick search and your right so I have just spent the whole day designing and creating the htaccess for a new project which works on my server sambar / apache for no good thank you so much for pointing this out to me. I am now looking at adding various new NT user accounts instead - is it home time yet ]
    Last edited by Sarah; Apr 12, 2002 at 09:56.
    Regular user

  6. #6
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Sarah
    oh... so what would I use for IIS (not an IIS person never used it)
    It's been a while since I've done the "IIS thing," but if I remember correctly, you have to specify security options via the IIS snap-in module (in Admin Tools?). And I think that individual, folder-specific options can be configured through the IIS snap-in, as well.

  7. #7
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    read up on this and it says that I have to create new NT accounts for each person ! Luckily its only for 6 people and it shouldn't change but seems crazy that its not supported - anyway thank you very much for the heads up

    Sarah
    Regular user


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
  •