This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Following djangosam2 documentation, the configuration looks like this: | |
| in setting.py | |
| AUTHENTICATION_BACKENDS = ( | |
| 'django.contrib.auth.backends.ModelBackend', | |
| 'djangosaml2.backends.Saml2Backend', | |
| ) | |
| in url.py | |
| urlpatterns = patterns( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import ldap | |
| l = ldap.initialize('ldap://ldap.corp.redhat.com') | |
| groups = l.search_s('dc=redhat,dc=com', ldap.SCOPE_SUBTREE, | |
| 'cn=%s' % sys.argv[1]) | |
| for group in groups: | |
| query = '(|(uid=%s))' % ')(uid='.join(group[1]['memberUid']) | |
| users = l.search_s('dc=redhat,dc=com', ldap.SCOPE_SUBTREE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2017-08-01 10:12:24,798 - MainThread - __main__ - INFO - Found docker images to rebuild in following order: | |
| 2017-08-01 10:12:24,798 - MainThread - __main__ - INFO - Batch 0 (10 images): | |
| 2017-08-01 10:12:24,798 - MainThread - __main__ - INFO - - rpms/jenkins-slave-base-rhel7-docker#92fa240b80c0b2c3dd8a968113add8c6947ac8f9 (based on rhel-server-docker-7.3-97) | |
| jenkins-slave-base-rhel7-docker-1.0-25 | |
| 2017-08-01 10:12:24,799 - MainThread - __main__ - INFO - - rpms/rhmap-mongodb-docker#cbe112023eb189c78d3f57ca619aa0fe0f4eca9d (based on rhel-server-docker-7.3-97) | |
| rhmap-mongodb-docker-3.2-22 | |
| 2017-08-01 10:12:24,799 - MainThread - __main__ - INFO - - rpms/jboss-openjdk-docker#16fa05cf29356061b94b9dd2097fa089d222f8f6 (based on jboss-base-rhel7-docker-1.0-8) | |
| jboss-openjdk18-rhel7-docker-1.0-10 | |
| 2017-08-01 10:12:24,799 - MainThread - __main__ - INFO - - rpms/logging-deployment-docker#e0cb6d07b5b5bbd5cfde00610b4cc776a55aff35 (based on openshift-enterprise-docker-v3.5.5.31.6-2) | |
| logging-deployment-d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import ldap | |
| l = ldap.initialize('ldap://ldap.corp.redhat.com') | |
| groups = l.search_s('dc=redhat,dc=com', ldap.SCOPE_SUBTREE, | |
| 'cn=%s' % sys.argv[1]) | |
| no_keys = [] | |
| for group in groups: | |
| query = '(|(uid=%s))' % ')(uid='.join(group[1]['memberUid']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import ldap | |
| l = ldap.initialize('ldap://ldap.corp.redhat.com') | |
| groups = l.search_s('dc=redhat,dc=com', ldap.SCOPE_SUBTREE, | |
| 'cn=%s' % sys.argv[1]) | |
| no_keys = [] | |
| for group in groups: | |
| query = '(|(uid=%s))' % ')(uid='.join(group[1]['memberUid']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import ldap | |
| l = ldap.initialize('ldap://ldap.corp.redhat.com') | |
| groups = l.search_s('dc=redhat,dc=com', ldap.SCOPE_SUBTREE, | |
| 'cn=%s' % sys.argv[1]) | |
| no_keys = [] | |
| all_users = [] | |
| for group in groups: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ $# -ne 2 ];then | |
| echo "Two arguments expected (subject, body)" | |
| exit 1 | |
| fi | |
| msmtp --from="Stanislav Ochotnicky <sochotnicky@redhat.com>" \ | |
| -t << EOF | |
| From: Stanislav Ochotnicky <sochotnicky@redhat.com> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import ldap | |
| l = ldap.initialize('ldap://ldap.corp.redhat.com') | |
| groups = l.search_s('dc=redhat,dc=com', ldap.SCOPE_SUBTREE, | |
| 'cn=%s' % sys.argv[1]) | |
| no_keys = [] | |
| all_users = [] | |
| for group in groups: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import ldap | |
| l = ldap.initialize('ldap://ldap.corp.redhat.com') | |
| groups = l.search_s('dc=redhat,dc=com', ldap.SCOPE_SUBTREE, | |
| 'cn=%s' % sys.argv[1]) | |
| no_keys = [] | |
| all_users = [] | |
| for group in groups: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import logging | |
| import requests | |
| import json | |
| from ticketutil.jira import JiraTicket | |
| # TEST ON JIRA STAGE FIRST! | |
| # ADJUST DESCRIPTION TEMPLATE! | |
| # ADJUST EPIC! |
OlderNewer