curl "ldap://localhost:1389/dc=example,dc=com?homephone?sub?cn=*amar" \
-u "cn=directory manager"
Enter host password for user 'cn=directory manager':
DN: uid=mathieu,ou=People,dc=example,dc=com
homephone: +1 225 216 5900
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 com.cloudbees.plugins.credentials.*; | |
| import com.cloudbees.plugins.credentials.domains.Domain; | |
| import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl; | |
| def secret = '''Hi | |
| there, | |
| only | |
| test''' | |
| def secretBytes = SecretBytes.fromBytes(secret.getBytes()) |
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 com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey | |
| import com.cloudbees.plugins.credentials.CredentialsScope | |
| import com.cloudbees.plugins.credentials.SystemCredentialsProvider | |
| import com.cloudbees.plugins.credentials.common.StandardCredentials | |
| import com.cloudbees.plugins.credentials.domain.Domain | |
| import com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl | |
| import hudson.util.Secret | |
| import org.apache.commons.fileupload.FileItem | |
| import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl |
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 | |
| mkdir -p ssl | |
| cat << EOF > ssl/req.cnf | |
| [req] | |
| req_extensions = v3_req | |
| distinguished_name = req_distinguished_name | |
| [req_distinguished_name] |
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 | |
| mkdir -p ssl | |
| cat << EOF > ssl/req.cnf | |
| [req] | |
| req_extensions = v3_req | |
| distinguished_name = req_distinguished_name | |
| [req_distinguished_name] | |
| [ v3_req ] |
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
| FROM php:7.3-alpine | |
| # This image is ready to build projects using technologies: | |
| # - PHP7 (with Lumen) | |
| # - Angular v8 | |
| # Check stack details in: https://confluence.agile.corp.edp.pt/display/TNG/PHP7 | |
| ENV COMPOSER_VERSION=1.9.3 \ | |
| COMPOSER_CACHE_DIR=/tmp/.composer/cache \ |
configure {
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 com.cloudbees.plugins.credentials.CredentialsNameProvider | |
| import com.cloudbees.plugins.credentials.Credentials | |
| import com.cloudbees.plugins.credentials.CredentialsProvider | |
| import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials | |
| import com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey | |
| import org.jenkinsci.plugins.plaincredentials.StringCredentials | |
| import org.jenkinsci.plugins.plaincredentials.FileCredentials | |
| String checksum( String input ) { |
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 hudson.model.User | |
| import jenkins.model.Jenkins | |
| import hudson.security.HudsonPrivateSecurityRealm | |
| import hudson.security.HudsonPrivateSecurityRealm.Details | |
| def instance = Jenkins.getInstance() | |
| def realm = instance.getSecurityRealm() | |
| def users = realm.getAllUsers() | |
| def generator = { int n -> |
