Re: [users@httpd] How to sign up using Apache

2022-07-04 Thread Ahmad Ismail
Wow! great solution. So we have to use htdbm. Is this the standard way of
doing it or are there other alternatives?

On Sun, Jul 3, 2022 at 9:08 PM Simon Harrison  wrote:

> On Sun, 3 Jul 2022 20:26:45 +0600
> Ahmad Ismail  wrote:
>
> > Who writes to dbm password files? I mean how are new users registered?
> >
> > If apache authenticates using `mod_auth_basic` or `mod_auth_digest`
> > then someone must put the users with their credentials there.
> >
> > Best regards,
> > Ahmmad Ismail
> >
>
> I setup users over SSH with Python:
>
> subprocess.run(['ssh', 'm...@server.tld', 'htdbm -bt
> /usr/local/apache2/var/users.dbm', email, pword,
> '{},'.format(alias)])
>
> Works really well. You will need to make yourself the owner of the dbm
> file and www-data as the group.
>
> Simon
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] How to sign up using Apache

2022-07-03 Thread Simon Harrison
On Sun, 3 Jul 2022 20:26:45 +0600
Ahmad Ismail  wrote:

> Who writes to dbm password files? I mean how are new users registered?
> 
> If apache authenticates using `mod_auth_basic` or `mod_auth_digest`
> then someone must put the users with their credentials there.
> 
> Best regards,
> Ahmmad Ismail
> 

I setup users over SSH with Python:

subprocess.run(['ssh', 'm...@server.tld', 'htdbm -bt 
/usr/local/apache2/var/users.dbm', email, pword,
'{},'.format(alias)])

Works really well. You will need to make yourself the owner of the dbm
file and www-data as the group. 

Simon

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] How to sign up using Apache

2022-07-03 Thread Ahmad Ismail
Who writes to dbm password files? I mean how are new users registered?

If apache authenticates using `mod_auth_basic` or `mod_auth_digest`  then
someone must put the users with their credentials there.

Best regards,
Ahmmad Ismail

On Sun, Jul 3, 2022 at 6:19 PM Yehuda Katz  wrote:

> There is no built-in module that provides user registration - that is
> something you would need to implement yourself.
>
> - Y
>
> On Sun, Jul 3, 2022 at 7:29 AM Ahmad Ismail  wrote:
>
>> I can use  `mod_auth_basic` or `mod_auth_digest` for authenticating
>> users.
>>
>> I can sign in or sign out using mod_auth_form.
>>
>> How to sign up when using the Apache authentication system?
>>
>> I guess that module has to write to dbm password files.
>>
>> Just to be clear, I want to use `mod_authn_socache` to maintain the cache.
>>
>> Is there any module or mechanism to do this?
>>
>


Re: [users@httpd] How to sign up using Apache

2022-07-03 Thread Yehuda Katz
There is no built-in module that provides user registration - that is
something you would need to implement yourself.

- Y

On Sun, Jul 3, 2022 at 7:29 AM Ahmad Ismail  wrote:

> I can use  `mod_auth_basic` or `mod_auth_digest` for authenticating users.
>
> I can sign in or sign out using mod_auth_form.
>
> How to sign up when using the Apache authentication system?
>
> I guess that module has to write to dbm password files.
>
> Just to be clear, I want to use `mod_authn_socache` to maintain the cache.
>
> Is there any module or mechanism to do this?
>


[users@httpd] How to sign up using Apache

2022-07-03 Thread Ahmad Ismail
I can use  `mod_auth_basic` or `mod_auth_digest` for authenticating users.

I can sign in or sign out using mod_auth_form.

How to sign up when using the Apache authentication system?

I guess that module has to write to dbm password files.

Just to be clear, I want to use `mod_authn_socache` to maintain the cache.

Is there any module or mechanism to do this?