====== Setup Calibre-web with samba-ad (Quick Notes) ====== - Create a samba-ad group called "calibre-web". - Add a bunch of users to the calibre-web group in samba-ad. - Login to Calibre-Web - Click on "Admin" - Click on "Edit Basic Configuration" - Open up "Feature Configuration" accordion. - Quick Changes: - Login Type: "Use LDAP Authentication" - LDAP Server: - LDAP Server Port: 389|636 (Unsecure|Secure) - LDAP Encryption: None|SSL|TLS (Unsecure|Secure SSL|Secure TLS) - LDAP Authentication: Simple - LDAP Administrator Username: CN= - LDAP Group Object Filter: (&(objectclass=group)(cn=%s)) - LDAP Group Name: calibre-web - LDAP Group Members Field: member - LDAP Member User Filter Detection: - LDAP Member User Filter: CN=%s - Save() - Click back on "Admin" - Click "Import LDAP users" pushbutton. All users in the calibre-web group will be imported. ==== LDAP Search helpers ==== The below should return users. If they do not, continue to work with ldap search until user names are returned for your group. == Generic == ldapsearch -H ldap://someip -x -D "CN=someuser,OU=Users,DC=samdom,DC=com" -w "somepassword" -b "OU=Users,DC=samdom,DC=com" "(&(objectclass=group)(cn=calibre-web))" member == Site Specific == ldapsearch -H ldaps://somehost -x -D "CN=sso,OU=Service,OU=6120U,DC=6120,DC=local" -w "somepassword" -b "ou=Users,ou=6120U,dc=6120,dc=local" "(&(objectclass=group)(cn=website-users))" member