User Tools

Site Tools


tech:unix:calibre-web

Setup Calibre-web with samba-ad (Quick Notes)

  1. Create a samba-ad group called “calibre-web”.
  2. Add a bunch of users to the calibre-web group in samba-ad.
  3. Login to Calibre-Web
  4. Click on “Admin”
  5. Click on “Edit Basic Configuration”
  6. Open up “Feature Configuration” accordion.
  7. Quick Changes:
    1. Login Type: “Use LDAP Authentication”
    2. LDAP Server: <IP or LDAP Hostname>
    3. LDAP Server Port: 389|636 (Unsecure|Secure)
    4. LDAP Encryption: None|SSL|TLS (Unsecure|Secure SSL|Secure TLS)
    5. LDAP Authentication: Simple
    6. LDAP Administrator Username: CN=<someuser,DC=samdom,DC=com
    7. LDAP Distinguished Name: DC=samdom,DC=com
    8. LDAP User Object Filter: (&(objectclass=user)(sAMAccountName=%s))
    9. LDAP Server is OpenLDAP?: <Unchecked>
    10. LDAP Group Object Filter: (&(objectclass=group)(cn=%s))
    11. LDAP Group Name: calibre-web
    12. LDAP Group Members Field: member
    13. LDAP Member User Filter Detection: <Custom Filter>
    14. LDAP Member User Filter: CN=%s
    15. Save()
  8. Click back on “Admin”
  9. 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
tech/unix/calibre-web.txt · Last modified: by ayush.zutshi