Questions tagged [ldap]

0

votes
0

answer
3

Views

LDAP with Liferay - Unknown host where exists

I have to integrate LDAP with two different services: exoPlatform and Liferay. So I set up an LDAP server via a Docker image with these configurations: Server Name: openldap Base Provider URL: ldap://openldap:389 Base DN: cn=users,ou=Platform,o=acme,dc=example,dc=org My admin account is just: cn=ad...
Melinsuna
1

votes
3

answer
751

Views

faster way to get AD memberships for millions of AD groups in a network with multiple trusted forests and domains

First, I cannot get into why I need this data and I cannot get into specifics about the network. You'll have to trust me there is no other way to get this data other than a PowerShell script to run LDAP queries. I am working with a network that has multiple forests and multiple domains. There is a t...
IMTheNachoMan
1

votes
1

answer
954

Views

What is the difference between uid and sAMAccountName

What is the difference between uid and sAMAccountName attributes of a Microsoft Active Directory. Edit : I am aware of the fact that sAMAccountName is a mandatory field and uid is not. Can someone explain how they differ from each other in terms of usage
Prayag Sagar
1

votes
2

answer
6.5k

Views

Spring ldap authentication failed error codes

I'm using Spring LDAP (1.3.1) to talk to ADAM and Active Directory. When I try to authenticate someone using ldapTemplate.authenticate() I get back errors via the error callback, but it gives a very generic exception AuthenticationException and I cannot extract what exactly is the problem: account...
Alexandru Luchian
1

votes
2

answer
91

Views

Calling a synchronous method in an async fashion?

I'm developing an ASP.NET MVC WebApi project and one of the methods needs to make a LDAP search. The amount of information the search retrieves from the LDAP server ensures the call takes at least 7 seconds to complete. The call, as it uses the System.DirectoryServices.Protocols classes and methods,...
Léster
1

votes
0

answer
144

Views

Could not connect secured LDAP server from other PC (CentOS)

I have created an LDAP server on my pc which has both secured and non-secured connections created. I have configured my Spring-MVC application to connect to LDAP servers in both secured and non-secured ways. When I try to connect the LDAP server from MY pc it is working fine. But when I try to conn...
VPK
1

votes
0

answer
162

Views

LDAP User/Group filter HIVE

I have a Ldap server and a group. Now I want to do the Ldap authentication for AWS HIVE using that group. Please find the details below: **CN=hadoop-admins OU=Groups,OU=Root DC=int,DC=domain,DC=com** I have put the values in the following hive properties: hive.server2.authentication.ldap.groupDNPatt...
Aditya Tiwari
0

votes
0

answer
6

Views

String to attributes jndi api

I try to resolve some problem. I have a difficulty in my function to update a user from interface jsf to ldap. My problem is convert string to attribute public static void updateUser(String name,Hashtable ldapEnv) throws NamingException { DirContext ctx = new InitialDirContext(ldapEnv); user user...
Ham Za
1

votes
0

answer
810

Views

Connect to Active Directory using Java JNDI

I am new to using JNDI and I am trying to connect to Active Directory using JNDI and I am facing either Authentication Error or Connection Time out. I am unable to understand what is the potential reason.This how my Active Directory looks like I have tried the following code public class ConnectAD...
user3679686
1

votes
1

answer
419

Views

Liberty ldap security-role/group mapping not working

In my server.xml I have the following configuration: My subject after the authentication looks like this: Principal: WSPrincipal:uid=MEMYSELFANDI,ou=person,o=somedir Public Credential: [email protected], realmName=LdapRegistry, securityName=MEMYSELFANDI,...
kinglite
1

votes
0

answer
206

Views

Why do datetime values from AD show up as 'System.__ComObject' in SSIS?

I am trying to create a package in SSIS that will read values from my AD and save into a table in a database. When I run this query: SELECT * FROM OpenQuery ( ADSI, 'SELECT whenCreated, whenChanged, [...], badPasswordTime, sAMAccountName FROM ''LDAP://mydomain.com/OU=ouUsers,DC=MYDOMAIN,DC=com'...
azulu
1

votes
0

answer
168

Views

Expose ASP.NET Identity via LDAP interface (.NET Core 2.0)

I have an ASP.NET Core 2.0 application where I am using the stock implementation of ASP.NET Identity to manage and authenticate my users. I would like to use my application as an identity provider for 3rd party service that I am planning on using. The only issue is that this service can only communi...
1

votes
0

answer
424

Views

Change Password not taking effect with Novell LDAP Modification for Asp.Net Core 2

For anyone who can help - I have code working fine in Asp/Net Core 2.0 that can add entries to LDAP using the Novell.Directory.Ldap.NETStandard (2.3.8) library. I also update properties and everything is error free. However when I update a password it doesn't take. I can't login in using the same pa...
CraigsterJ
1

votes
1

answer
206

Views

Spring LdapRepository returns no results while Spring Security works

My Problem I am using an LdapRepository to get user information from an Ldap server. This Ldap server is also queried by Spring Security to authenticate user. My issue is, that Spring Security is able to find and identify users, while I'm unable to find users through my LdapRepository, using the sam...
Joba
1

votes
0

answer
382

Views

spring boot security ldap authentication throws Uncategorized exception occured during LDAP processing

I am a beginner for spring. Currently, I am trying to work on Spring LDAP authentication, but I am getting exception. Couldn't find a solution. Sometimes I get this exception: Caused by: org.springframework.ldap.CommunicationException: domain.com:389; nested exception is javax.naming.CommunicationE...
R12
1

votes
0

answer
1.1k

Views

ldapsearch returns “No such object”

I have an LDAP server and can successfully search for a user: ldapsearch -h localhost -p 389 -b 'dc=pieye,dc=org' 'cn=Markus Proeller' -D 'cn=admin,dc=pieye,dc=org' -W Enter LDAP Password: ... # search result search: 2 result: 0 Success # numResponses: 2 # numEntries: 1 However if I try to perform t...
Markus
1

votes
0

answer
174

Views

Pentaho Login Error using LDAP/JDBC Hybrid configuration

I've followed Pentaho (version 7) documentation on how to set LDAP/JDBC hybrid configuration: created the tables and filled them with the appropriate values then updated the configuration files as instructed. When trying to login to the PUC the following error is thrown: java.util.concurrent.Execu...
jamal_lib
1

votes
0

answer
155

Views

Spring security returns wrong loggedin user AFTER override UserDetailsContextMapper

I am using spring security with LDAP in a spring boot application. Everything was working fine before I did below changes in security config as below. Override UserDetailsContextMapper to set ROLE for the users. Restrict URLs based on user role. Below are the code changes to achieve above 2 things....
1

votes
1

answer
369

Views

C# PrincipalContext only changes password for some users, not all

I'm trying to change the AD password of all members in my system, but my code only changes the password for some members successfully. For members whose password can't be changed, it shows the following error: System.NullReferenceException: Object reference not set to an instance of an object. at ch...
Elenn
1

votes
0

answer
69

Views

PHP LDAP - Allow users to change their own password

I've been creating a web portal to allow our staff to change their AD passwords. While I can change the users password using ldap_mod_replace when admin credentials are used for the ldap_bind, it won't work when I bind with the users credentials. Is there something more I need to do to allow a user...
user2168287
1

votes
0

answer
842

Views

Authenticating users with ldap in Django project

I am trying to authenticate users against my ldap server. I have successfully ran pip install python-ldap and django-auth-ldap.. I am running python 2.7.. Every time I try to login my to Django admin with my superuser account I get the following error: AttributeError at /admin/login/ 'module' o...
Dr.Gonzo
1

votes
2

answer
31

Views

Active Directory 2008R2 Serving Invalid TLS Certificate Over LDAP

I am creating a simple client to connect to the LDAP servers running on one of my windows 2008R2 Active Directory Domain Controllers. I have successfully connected to the LDAP server over a non TLS connection. However, whenever I attempt to make a TLS connection, the handshake fails. After some digg...
1

votes
0

answer
892

Views

Spring Ldap get roles/authorities from user

i am trying to get the roles from a user in our ldap system. First of all, my ldap user entry and role entry: @Data @Entry(objectClasses = {'inetOrgPerson', 'top'}, base = 'ou=people' public class LdapUserEntry { @Id private Name id; @DnAttribute(value = 'uid') private String username; @Attribute(na...
Juan Carlos Rodriguez
1

votes
0

answer
131

Views

Error on operational attribute creation in OpenLDAP

Actually, in my LDAP, I have a groups ou populated with groupOfNames objects and a roles ou populated with groupOfMembers objects. I also configured the memberOf overlay to retrieve the groupOfMembers (ie roles) the user belong to in the memberof attribute. My goal is to have also an attribute membe...
J. Sabatier
1

votes
0

answer
251

Views

Unable to run Presto LDAPS from SQL workbench

I am unable to execute any query from Sql-workbench/J for AWS-EMR presto which is Ldaps(SSL/secureLDAP) enabled. Following are the details: Connection String: jdbc:presto://hostname:8446/hive?SSL=true username=admin password=**** I can connect to it successfully, but while executing any query (l...
Aditya Tiwari
1

votes
0

answer
156

Views

Django LDAP email as Username

I am trying to login as a LDAP-user with an e-mail adress. I used the following code: settings.py AUTH_LDAP_SERVER_URI = 'ldap://192.168.12.123' AUTH_LDAP_BIND_DN = 'User' AUTH_LDAP_BIND_PASSWORD = 'Password' AUTH_LDAP_CONNECTION_OPTIONS = { ldap.OPT_DEBUG_LEVEL: 1, ldap.OPT_REFERRALS: 0 } AUTH_LDAP...
GeniusBehind
1

votes
1

answer
49

Views

Java ActiveDirectory LDAP - Authenticate user with password hash

I want to authenticate a active directory user with a on javascript client side hashed password. Is that possible? Currently I'm transfering the password in plain text to the server via a https connection. This is my java side code to check the provided password: public DirContext getDirContext( Str...
PietH896
1

votes
1

answer
126

Views

LDAP Java attribute maxpwdAge returns -864000000000

In Java, I tried to read the attribute maxpwdAge, and in LDAP, this attribute is defined as 180 days, but in my Java API returns -864000000000. Do you know if this issue is related to the permissions in LDAP? How can I fix it? Regards.
1

votes
0

answer
715

Views

Issue with connect Spring security LDAP

How can I realize LDAP authorization in Spring boot application if authentication is performed on server using DBMS_LDAP. Server returning null if user wasn't authorized else returning user properties. dependencies: compile('org.springframework.boot:spring-boot-starter-web') compile('org.springfra...
Daria
1

votes
0

answer
187

Views

Integration of LDAP in ABP

I am trying to use a combination of LDAP and Windows Authentication for authenticating the user but not quite sure how to implement it. I have already gone through the External Authentication and have implemented MyExternalAuthSource as per the document describes and it works fine but not fully addr...
Mohammad Shadmehr
0

votes
4

answer
1.1k

Views

Convert a method to use async

I am converting a authentication process to support async and the VS 2015 IDE is warning me with the following message: The async method lacks 'await' operators and will run synchronously... etc... Anyway, the code connects to a LDAP store and verifies a user's account and etc... I have tried variou...
Warren LaFrance
1

votes
0

answer
166

Views

Sonarqube - get users from LDAP

we have an issue of finding LDAP users that never logged in to the Sonarqube before. Is it possible? Sounds like a simlpe thing to assign an issue or add some user to the group without forcing this user to login to the Sonarqube before that. I'm I wrong? Versions: sonar-ldap-plugin-2.2.0.608 So...
Dima Kreisserman
1

votes
0

answer
215

Views

Why my ldap login does not work?

I need to be able to login with uidnumber and uid, but i keep getting errors like: testCreateEmployee(com.companyName.personnel.services.EmployeeServiceImplTest) Time elapsed: 0.021 sec
bernie_g
1

votes
0

answer
777

Views

Get all attributes from Active Directory using Spring LdapTemplate

I have a Spring Boot application that uses LDAP to authenticate the users. For the users, I am mapping the attributes from AD and populating the values like the user's first name, last name, department, email, telephone, and also the image. However, I am unable to get the employee number from the at...
K. G
1

votes
1

answer
622

Views

nginx AD authentication failure

Tried to configure Nginx to authenticate using AD and have been getting the following error. 2018/03/22 17:07:51 [error] 6981#0: http_auth_ldap: Could not connect Have tried different ways of writing the ldap url, but none of them seems to work. The current authentication module in the configuration...
Abhishek B
1

votes
0

answer
148

Views

IBM MQ How to tell if your JNDI Bindings are LDAP

I'm currently in the process of migrating an application from AIX to LINUX. One of the processes is to install and setup MQ. I've gotten past setting up the Connection Factory and Activation Spec in my server.xml. My application is connecting to the MQ(which is on the same box). However, it's una...
fergp25
1

votes
1

answer
44

Views

C# LDAP AD Authentication - Separate Network

I am working on a solution to use Active Directory to authenticate our applications, we are using LDAP protocol, we have several domain controllers that all sync together. I have built out an application that works with Active Directory authentication using our internal domain controller which is o...
Daniel
1

votes
0

answer
48

Views

Interactive BASH or AWK in LDAP LDIF

I have a LDIF file with structure that looks similar to: NUMBER: 44567898787 ORGANISATION: Something NAME: Joe SURNAME: Johnny PLACE: Somewhere NUMBER: 44555444333 ORGANISATION: Unknown NAME:Alice SURNAME: State PLACE: Here I'm using AWK atm: #!/usr/bin/awk -f BEGIN{ FS = ':'; } { if($1 ~/^ORGANISAT...
Empe
2

votes
0

answer
15

Views

Get all groups and roles for current user from LDAP

I'm trying to get all groups and roles for current user from LDAP. Here is my App. If user logged in I need to get its roles and groups I searched many post, but didnt found the answer @Override public void run(String... args) throws Exception { String searchbase = 'dc=springframework,dc=org'; Hasht...
art
1

votes
0

answer
32

Views

LDAP authentication for specific users

I made login via LDAP, but I would like only 3 people to access the site. They are members of different groups, and I do not want to give permission to the whole group. How to make a $username comparison with specific AD usernames? I try this but not working... $username = strip_tags($_POST['usernam...
user9557556

View additional questions