No SMTP credentials option - jenkins

I am trying to set up the "Extended E-mail Notification" in jenkins. My plugin version is 2.89
However in the setup i dont see the SMTP Authentication checkbox, instead it just has this credentials tab. Credentials
I tried to use my office365 credentials but it is just using the jenkins user for some reason.
Error message
Does anyone know how to set up the plugin?

Related

Unable to configure Confluence Publish plugin in Jenkins

I want to upload attachments to a page in Confluence in a post build action using a pipeline job.
I downloaded the Confluence Publisher plugin. Im trying to use my email id as username and API Token as password to test login. (tried with both http and https)
Keeps giving Authentication Error (401)
I tried from postman with same token and username (Auth method as API Authentication). Works like a charm.
What am I doing wrong?
Had the same problem here with version 0.12.0.
Problem is fixed for me with changing to version 0.17.1

"organization has enabled or enforced SAML SSO. To access remote: this repository" Error on Docker Build

fatal: could not read Username for 'https://github.com': terminal prompts disabled Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
Any idea how can I fix it inside docker
When you're in an organization that uses SAML SSO, every personal access token that's used to access that organization's resources has to be specifically enabled for that organization.
You can go into the Personal Access Token settings and choose "Configure SSO". From there, you can enable the token for the specific organization that you're using. After that point, using it as normal should work.
Double check if you have an SSH key associated with your account (https://github.com/settings/keys) and make sure it has SSO enabled as well.
As answered above, make sure you go to personal access settings and ensure that configure sso for your token includes your ORGANIZATION-NAME. Additionally, I had to do an extra step for it work. I went to https://github.com/orgs/ORGANIZATION-NAME/sso
Source: https://docs.github.com/en/enterprise-cloud#latest/authentication/authenticating-with-saml-single-sign-on/about-authentication-with-saml-single-sign-on

Jenkins Github Pull Request Builder Plugin throwing user authentication error

I'm using https://github.com/jenkinsci/ghprb-plugin plugin for my Jenkins to initiate job build when pull request is raised.
I'm getting below error
"Unable to connect to GitHub API: org.kohsuke.github.HttpException: {"message":"Requires authentication","documentation_url":"https://docs.github.com/rest/reference/users#get-the-authenticated-user"}"
Tried with multiple user on 2 different Jenkins, issue remains same.
Right now you are using github username and password. But you need to use github access token instead of password for authentication. You can create an access token from settings -> Developer Settings -> Personal Access tokens -> Generate new token.

Jenkins OpenID Connect plugin - userInfoServerUrl

Just got Jenkins configured with OpenID Connect but was wondering how it gets userInfoServerUrl. Is it retrieved from IdP metadata (/fss/.well-known/openid-configuration)?
If not, is there anyway to configure it?
The reason I am asking is that when I invoke the user info url manually, I do see token keys but Jenkins complains that the key is not supplied in the payload. The other issue is that it's not reading/populating mail and full name from the payload.
java.lang.Exception: no field 'uid' was suppied in the token payload to be used as the username
at org.kohsuke.stapler.HttpResponses.error(HttpResponses.java:83)
at org.jenkinsci.plugins.oic.OicSecurityRealm$2.onSuccess(OicSecurityRealm.java:206)
at org.jenkinsci.plugins.oic.OicSession.doFinishLogin(OicSession.java:98)
at org.jenkinsci.plugins.oic.OicSecurityRealm.doFinishLogin(OicSecurityRealm.java:294)
at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
Looks like the option to set userInfoServerUrl will be available in the next release. See github

can't connect to jenkins using ldap users

I'm using jenkins and I would like to use ldap users to connect to jenkins. I put all informations in security configuration --> LDAP and I click on the Apply button, after that the connection to ldap is ok but when I register it and come back again in security configuration, I see this message :
Unable to connect to 10.26.56.70:10389 : javax.naming.AuthenticationException: [LDAP: error code 49 - INVALID_CREDENTIALS: Bind failed: ERR_229 Cannot authenticate user ]
It looks like jenkins can't autommatically connect to LDAP server. Can someone help me please?
Sounds like you forgot or have misconfigured the fields "Manager DN" and "Manager Password". The Manager DN is the account for reading the LDAP database when other users are authenticating so it needs full access to the database.

Resources