Domain server with name could not be contacted. Either the server is down or domain name is incorrect. The LDAP server is unavailable - authentication

I am stuck with an issue. I am trying to connect to Ax2009 using wsdl url in postman. When i tried to access that url in browser i am able to access that but through postman i am getting LDAP error.
Error: Test connection failed. Reason: Domain server with name:ABC could not be contacted. Either the server is down or domain name is incorrect. The LDAP server is unavailable.
Code:
using (var context = new PrincipalContext(ContextType.Domain,AuthInfo.Domain))
Getting error on this first line.
Please suggest some solution for this issue.
Thanxs in advance.

Related

Error connecting to MS SQL SERVER in Pentaho

I m using Pentaho v5.2. When i tried to connect to sql server i m end with below error. I had downloaded and placed required driver sqljdbc4-2.0 jar in pdi-ce-5.2.0.0-209\data-integration\lib. Please help me as I'm new to Pentaho.
Error connecting to database [mssqlserverconn] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class com.microsoft.sqlserver.jdbc.SQLServerDriver)
Login failed for user 'Lenovo-PC\RamaKrishna'.
org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class com.microsoft.sqlserver.jdbc.SQLServerDriver)
Login failed for user 'Lenovo-PC\RamaKrishna'.
From the error message you're being thrown, it's an authentication issue.
It looks like you are trying to use your username from your laptop domain - is that what you want? Does the the server accept this user name (Lenovo-PC\RamaKrishna)?
You may have been using integrated security, which basically overrides whatever you set as the username in the text-box and uses your Windows username instead.
See below:

TeamCity LDAP configuration problems

I'm trying to configure LDAP authentication for teamcity but can't get it to work. I already configured some other services on this server to authenticate using LDAP and had no problems (so it's not fault of the DC).
Following describes my config file:
java.naming.provider.url=ldap://192.168.0.123:389/DC=server,DC=example,DC=com
java.naming.security.principal=ldap-user
java.naming.security.credentials=jE&4i.%$lpDr3#?
java.naming.security.authentication=simple
teamcity.users.login.filter=(&(sAMAccountName=$capturedLogin$)(memberOf=CN=Group1,CN=Users,DC=server,DC=example,DC=com))
teamcity.users.username=sAMAccountName
teamcity.auth.loginFilter=[^/\\\\#]+
teamcity.options.users.synchronize=false
teamcity.options.groups.synchronize=false
When I set authentication to 'none' it works (but I can't restrict access to a specific group). I also tried using the full user name (incl. domain; i.e. DOMAIN\ldap-user) and also tried to use full DN instead, but it didn't change anything.
In log i see that the ldap server returns error code 49, which means that the binding failed. Like mentioned before I already configured other services on this server to authenticate with the same ldap server and the same binding user and had no problems.
Does anybody know how to solve this issue?
Thanks in advance!
This is my configuration and It working fine. The synchronization is allowed so information like email and name there are no available but enable the login with NT Id and Credentials
java.naming.provider.url=ldap://amer.xxxx.com:389/DC=amer,DC=xxxx,DC=com
java.naming.security.principal=CN=SRVAMR-xxx,OU=CMAPPS,OU=Service,OU=Accounts,DC=amer,DC=xxxx,DC=com
java.naming.security.credentials=Pf867955
teamcity.users.login.filter=(&(sAMAccountName=$capturedLogin$)(memberOf=CN=AMR-GENOME-L,OU=GMA,OU=Security,OU=Groups,DC=amer,DC=xxxx,DC=com))teamcity.users.username=sAMAccountName
I Hope help you

VB.NET LDAP authentication error: "The server is not operational"

We have a VB.NET application that uses LDAP to authenticate users through Active Directory.
Never had an issue before but this afternoon my co-worker applied Windows Updates and restarted our domain controller (and AD server) and now whenever anyone tries to login and use the application they get the following error:
Error Number: -2147016646
Error Descr: The server is not operational.
Using the following code to authenticate:
Dim adEntry As New System.DirectoryServices.DirectoryEntry("LDAP://" & gsDomainName, sUserName, sPassword)
Dim adSearcher As New System.DirectoryServices.DirectorySearcher(adEntry)
adSearcher.SearchScope = DirectoryServices.SearchScope.OneLevel
Try
Dim adResults As System.DirectoryServices.SearchResult = adSearcher.FindOne
...
It fails on the adSearcher.FindOne piece of code.
The immediate window gives more detailed error information
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in System.DirectoryServices.dll
Anyone have any ideas?
Things I've tried:
Flushing the DNS on the domain controller
Restarting the DHCP server
Restarting DNS services.
Thanks!

Reportviewer working in localsystem(remote database) but error in webserver

reportviwer working fine in localsystem
when i set reporturl path and remoteserverurl details
serverurl : http://sriventech.in/ReportServer
reportpath : /invoice.rdlc
and upload the website
it is displaying errror ::
The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
The request failed with HTTP status 404: Not Found.
is there any problem with webserver or my reportpath and serverrul details
Unless you are in Local Mode, you have to provide credentials to the reporting server to run reports. The generic 404 is probably masking an authentication error. Make sure you are in the correct Active Directory group if you are using integrated authentication. Otherwise the page should prompt you to log in.

Calling CPanel API from a different server

I have 6 VPS' with CPanel / WHM on. I currently have an admin section on each one that I use to create accounts and start some Crons. I would like to manage all this from one server but I can't connect using my script unless I use it on the server I am calling it for.
The error I get is: curl_exec threw error "couldn't connect to host" which I presume means the connection is actually being blocked. I have added a firewall rule for my admin server's IP but that doesn't help.
What do I need to allow in order to use the API cross server?
p.s I am using User / Pass authentication with PHP.
EDIT: Ok I can connect when changing the port to 2087 but get access denied messages.
Thanks.
OK sorted it.
I needed to change the port I was connecting on to 2087 (from 2082) and use the WHM root login credentials.