Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP "createUser" and "updateUser" configuration setting in MISP core/files/configure_misp.sh #177

Open
escamudo opened this issue Oct 30, 2024 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@escamudo
Copy link

Is it possible to add the "createUser" and "updateUser" setting to misp-docker/core/files/configure_misp.sh to enable automatic user information updates with each LDAP login?

The "updateUser" would allow MISP roles for LDAP groups to be refreshed automatically on the user's next login, ensuring that any role changes are immediately applied to users within the LDAP group. ( https://www.circl.lu/doc/misp/appendices/#appendix-f-ldap-authentication )

LDAP_DEFAULT_ROLE_ID="{"ldap_misp_group_publisher": 4, "ldap_misp_group_admins": 1}"

core/files/configure_misp.sh :

    sudo -u www-data php /var/www/MISP/tests/modify_config.php modify "{
        \"ApacheSecureAuth\": {
            \"apacheEnv\": \"${LDAP_APACHE_ENV}\",
            \"ldapServer\": \"${LDAP_SERVER}\",
            \"starttls\": ${LDAP_STARTTLS},
            \"ldapProtocol\": ${LDAP_OPT_PROTOCOL_VERSION},
            \"ldapNetworkTimeout\": ${LDAP_OPT_NETWORK_TIMEOUT},
            \"ldapReaderUser\": \"${LDAP_READER_USER}\",
            \"ldapReaderPassword\": \"${LDAP_READER_PASSWORD}\",
            \"ldapDN\": \"${LDAP_DN}\",
            \"ldapSearchFilter\": \"${LDAP_SEARCH_FILTER}\",
            \"ldapSearchAttribut\": \"${LDAP_SEARCH_ATTRIBUTE}\",
            \"ldapFilter\": ${LDAP_FILTER},
            #################### TO ADD ####################
            \"createUser\": ${LDAP_CREATE_USER},
            \"updateUser\": ${LDAP_UPDATE_USER},
            ###############################################
            \"ldapDefaultRoleId\": ${LDAP_DEFAULT_ROLE_ID},
            \"ldapDefaultOrg\": \"${LDAP_DEFAULT_ORG}\",
            \"ldapAllowReferrals\": ${LDAP_OPT_REFERRALS},
            \"ldapEmailField\": ${LDAP_EMAIL_FIELD}
        }
    }" > /dev/null
@ostefano
Copy link
Collaborator

How would those vars be initialized?

Can you create a PR?

@ostefano ostefano added the enhancement New feature or request label Oct 30, 2024
@ostefano ostefano added the question Further information is requested label Nov 13, 2024
@arteta22000
Copy link

big news: MISP/MISP#10038

Native LDAP integration coming soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants