josechudev commented on issue #22290:
URL: https://github.com/apache/superset/issues/22290#issuecomment-1421110780

   @cnwyc sry, for the late reply.
   In your values file add 
   ```
   bootstrapScript: |
     #!/bin/bash
     rm -rf /var/lib/apt/lists/* && \
     apt-get update -y && apt-get install -y python3-dev libldap2-dev 
libsasl2-dev ldap-utils tox lcov valgrind \
     pip install --upgrade --force-reinstall gunicorn \
     pip install python-ldap==3.4.3 \
     pip install \
       psycopg2-binary==2.9.1 \
       redis==3.5.3 && \
     if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ 
.Values.runAsUser }}" > ~/bootstrap; fi
   ```
   
   And for the ldap  this is my config  but you can find the guide 
[here](https://community.cloudera.com/t5/Support-Questions/How-to-configure-Superset-to-use-LDAP/m-p/283060/highlight/true)
   
   ```
   
   configOverrides:
   
     enable_ldap: |
     
         from flask_appbuilder.security.manager import AUTH_LDAP
         SESSION_COOKIE_SAMESITE = 'None'
         AUTH_TYPE = AUTH_LDAP
         AUTH_USER_REGISTRATION = False
         AUTH_LDAP_USE_TLS = False
         AUTH_LDAP_SERVER = "ldap://host:port";
         AUTH_LDAP_BIND_USER = "CN=bind 
user,OU=Devops,DC=xx,DC=xx,DC=xx,DC=xx,DC=io"
         AUTH_LDAP_BIND_PASSWORD = "pass"
         AUTH_LDAP_UID_FIELD = "sAMAccountName"
         AUTH_LDAP_SEARCH_FILTER = "(sAMAccountName=%s)"
         AUTH_LDAP_SEARCH = "OU=Devops,DC=xx,DC=az,DC=platform,DC=xx,DC=io"
         AUTH_LDAP_ALLOW_SELF_SIGNED= True
         AUTH_APPEND_DOMAIN = False, AUTH_LDAP_USE_TLS=False
         AUTH_LDAP_FIRSTNAME_FIELD = "givenName"
         AUTH_LDAP_LASTNAME_FIELD = "sn"
         AUTH_LDAP_EMAIL_FIELD = "mail"
   
         AUTH_ROLES_SYNC_AT_LOGIN = True
         
         AUTH_LDAP_GROUP_FIELD = "memberOf"
         AUTH_ROLES_MAPPING = {
             "CN=devops_admins,OU=devops,DC=xx,DC=xx,DC=xx,DC=xx,DC=io": 
["Admin"],
             "*": ["Viewer"]
          }
         
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to