Commit a6e9cfc7 authored by Daniela Daniel's avatar Daniela Daniel
Browse files

Update README.md

parent f629099f
......@@ -145,18 +145,43 @@ Create the authentication view for library `pam_mysql.so`:
mysql> CREATE VIEW account_table AS SELECT username,password from ftp_manager_secondaryaccount WHERE expiration_time>now() UNION SELECT username,password FROM ftp_manager_account WHERE expiration_time>now();
```
__Edit `settings.py` to suit your needs (LDAP and FTP and e-mail settings):__
__Edit `settings.py` to suit your needs (LDAP, FTP and e-mail settings):__
```
# ----------------------------------------------------------------------------
# LDAP SERVER AUTH CONFIG
# ----------------------------------------------------------------------------
AUTH_LDAP_SERVER_URI = ''
# Can leave blank if anonymous binding is sufficient
AUTH_LDAP_BIND_DN = ''
AUTH_LDAP_BIND_PASSWORD = ''
# Any user account that has valid auth credentials can login
AUTH_LDAP_USER_SEARCH = LDAPSearch('',
ldap.SCOPE_SUBTREE, "(uid=%(user)s)")
AUTH_LDAP_GROUP_SEARCH = LDAPSearch('',
ldap.SCOPE_SUBTREE, "(objectClass=posixGroup)")
AUTH_LDAP_GROUP_TYPE = PosixGroupType()
# Map LDAP group membership into Django admin flags
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
"is_staff": '',
"is_superuser": ''
}
# ----------------------------------------------------------------------------
# biohpc_accounts app
# ----------------------------------------------------------------------------
# LDAP URI, user and password for BioHPC Directory (read/write)
BIOHPC_ACCOUNTS_LDAP_URI = "ldap://localhost"
BIOHPC_ACCOUNTS_LDAP_URI = ''
BIOHPC_ACCOUNTS_LDAP_USER = ''
BIOHPC_ACCOUNTS_LDAP_PASSWORD = ''
# Default primary GID for newly created users
BIOHPC_ACCOUNTS_DEFAULT_GID = 9999
BIOHPC_ACCOUNTS_DEFAULT_GID = ''
# Samba Domain Name
BIOHPC_ACCOUNTS_SAMBA_DOMAIN = ''
# Samba Domain SID
......@@ -164,7 +189,7 @@ BIOHPC_ACCOUNTS_SAMBA_SID = ''
# LDAP Base DN to check for users/groups anywhere in the tree
BIOHPC_ACCOUNTS_BASE_DN = ''
# LDAP suffix for new users added to directory, but not enabled for services
# Have portal access only
# Have portal access only
BIOHPC_ACCOUNTS_NEW_USER_SUFFIX = ''
# LDAP suffix for active users in directory
BIOHPC_ACCOUNTS_ACTIVE_USER_SUFFIX = ''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment