0

SimpleSAML - SQLServer Connection

'sqlserver' => [
'sqlauth:SQL',
'dsn' => 'sqlsrv:Server=[server host / ip],1433;Database=[dbname]',
'username' => '[userid]',
'password' => '[password]',
'hash_column' => 'password',
'query' => 'SELECT users.uid, name AS cn, email AS mail,password FROM users WHERE users.email = :username',
'pepper' => '',
],
0

SimpleSAML and Active Directory configuration

References:

In config/authsources.php change example-ldap to the desired configuration

'example-ldap' =[
'ldap:LDAP',
hostname' = 'host.domain.com',
'enable_tls' = FALSE,
'debug' = TRUE,
'port' = 389,
'timeout' = 10,
'referrals' = FALSE,
'dnpattern' = 'sAMAccountName=%username%,ou=users,dc=company,dc=com',
'search.enable' = TRUE,
'search.base' = 'OU=users,DC=company,DC=com',
'search.attributes' = array('samAccountName'),
'search.username' = 'CN=yourname,OU=Users,DC=company,DC=Com',
'search.password' = ' ***** ',
'priv.read' = TRUE,
'priv.username' = '',
'priv.password' = '****'
]
0

Bootstrap 4 Datetime Picker With Custom Format Initialization

I had several date time picker with custom format (yyyy-MM-dd hh:mm:ss) in a page and don't want to initialize each element manually.

https://tempusdominus.github.io/bootstrap-4/
0

JQuery - textarea with character remaining using maxlength attribute

I want a simple solution to add the current text area with the remaining characters displayed without having to manually add counting elements.
 
Copyright © peyotest