skip to Main Content

How to apply hashing SHA256 on Django LDAP login? – Apache

I'm using LDAP authentication in Django, as shown below and also using password hashers. from django_auth_ldap.config import PosixGroupType, LDAPSearch import ldap PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.PBKDF2PasswordHasher', 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher', 'django.contrib.auth.hashers.Argon2PasswordHasher', 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', ] # We use a dedicated user to bind to the LDAP…

VIEW QUESTION

$_GET variables empty .htaccess rewrite – Apache

https://website.com/api/somefolder/test/512/31 Should rewrite to: https://website.com/api/somefolder/test.php?param1=512&param2=31 and https://website.com/api/somefolder/anotherfolder/hello/yo/44 Should rewrite to: https://website.com/api/somefolder/anotherfolder/hello.php?param1=yo&param2=44 RewriteEngine On RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule !.*.php$ %{REQUEST_FILENAME}.php?param1=$1&param2=$2 [QSA,L] The rewrite works but $1 and $2 are empty. Any idea why? My htaccess file is located in the api…

VIEW QUESTION

How to authorize a user belonging to a group that contains hashes – Apache

I'm trying to authorize a user depending on his group membership. Apache is configured as follows: AuthLDAPURL "ldap://DOMAIN.COM/DC=FOO,DC=COM?CN?SUB?(objectClass=user)" NONE AuthLDAPBindDN "CN=..." AuthLDAPBindPassword "..." Require ldap-group CN=##SOMETEXT,OU=GSI,OU=DMM,OU=DDSIS,OU=Admin_Exchange,DC=DOMAIN,DC=com The problem comes from the two hashes that appear in the CN. I tried…

VIEW QUESTION
Back To Top
Search