Hello,
I am afraid that you will need some programming to do so.
Open the file: /usr/share/doc/weborf/examples/auth.py
It is an example of authentication script for weborf. You can modify it according to your needs. For example if you need a certain username and password you can use the following condition (to replace the condition in the example file):
Code:
if not ('username' == data[3] and 'password' == data[4]):
conn.send(' ')
conn.close()
Now save the new file somewhere like /usr/local/sbin/weborf.auth and give it exec permissions.
Also replace /tmp/weborf_auth.socket with /run/weborf.auth
Now you must edit /etc/weborf.conf and set
auth-bin=/usr/local/sbin/weborf.auth
auth-socket=/run/weborf.auth
After you did it, weborf will run with autentication.
Bookmarks