ldap

Is it possible to use Jasper Reports to generate reports from LDAP

I'd like to be able to include the results of LDAP queries in Jasper reports. Is that feasible? From what I can gather it seems that the only way to go about this is to write my own custom datasource. ...

Java LDAP with SASL

Hi, I am using Java 1.2 with the Netscape ldapjdk.jar and trying to make an LDAP connection to one of our servers that needs SASL. I’m also relativity new to LDAP. I do know that java EE has built in LDAP but I am not able to use it at this time. I have been able to make a connection to another server using regular LDAP but I am not ...

Problem with custom Authentication Backend for Django

I'm having a problem with a custom Authentication Backend I've built for an Active Directory via LDAP authentication. The problem is that from the admin login page, after it properly authenticates and creates the new user in the database (or updates their info from the LDAP server), but then returns me to the admin login page indicating...

Ldap_add() : Invalid Syntax

I have a program here that uses the ldap_add, when i try to run the program, it displays an error: Warning: ldap_add() [function.ldap-add]: Add: Invalid syntax in /var/www/suey/costcenter.20090617.php on line 780 My lil' code here is: $ldapservers='ourServer'; $ds = ldap_connect($ldapservers); if ($ds){ $r = ldap_bind(...

Can I retrieve the domain name and user name by searching Active Directoy using C#

All, I have a big list of user emails, and I need to get the username and domain name for each one of them. My organization contains lots of domains and our users log on to their machine using usernames that are different from their email addresses. Please advise if we can write a C# utility that can search AD using the email of each ...

How can I formulate an ldap query looking for the absence of an attribute

I want to query my directory for all User objects that don't contain a value for a given attribute... I have kind of hacked it up looking for things without a specific value (the potential assigned values are small, so this mostly worked) - but I would really like to know if there is a way to actually query for the absence of an attribut...

LDAP requests hanging for 15 seconds

I have JBoss application server that is using LDAP for authentication. Lately we have noticed that there are a lot of slow requests (> 15 seconds). I did some threaddumps of the server and noticed that many threads where waiting on a lock: com.sun.jndi.ldap.LdapRequest@54ceac java.lang.Object.wait(Native Method) com.sun.jndi.ldap.Conne...

Implement a Tomcat Realm with LDAP authentication and JDBC authorization

I'm working in a legacy environment where an LDAP server is used only for authentication and contains no roles, and authorization is done against a database which contains the user-role mapping, but no passwords. My plan is to implement a new Tomcat Realm by extending JNDIRealm, and overriding the role methods to call an encapsulated JD...

NamingEnumeration hasMoreElements method takes a lot of time when returning false for LDAP

Hi, I am trying to search a LDAP server(Active Directroy), When i parse the search results, the hasMoreElements method of NamingEnumeration takes around 15-20 seconds to execute when it returns false. It is not the case when it is returning true. Is there a way to solve this issue? code: SearchControls ctrl = new SearchCon...

Ldap Connection Reset

I have an Ldap client and server running . The client creates Ldap connection and waits for 120 seconds. During this time , I will kill the ldap server and again restart it . When the Ldap client wakes up from sleep 120, it will still think the connection to LDAP server is valid and sends the query to server. Because Server does not kn...

ldap_bind_s returning LDAP_SUCCESS with wrong credentials

Hi guys, I have this little problem. I want to authenticate user against LDAP (Windows Active Directory), everything works OK, but the combination (good user, good password, wrong domain). LDAP* ldap = ldap_init(L"myserver", 389); ULONG ldap_version = 3; ULONG ret = LDAP_SUCCESS; ret = ldap_set_option(ldap, LDAP_OPT_PROTOCOL_VERSION, ...

Authentication between domains

I have: a service running under user account domainA\userA on hostA from domainA SPNs created for the service running on hostA for user account domainA\userA a client part of my application is trying to access resources (through remoting) from the service running on hostA but this client part is running on hostB from domainB and under ...

Why does authenticating against LDAP with DirectoryEntry intermittently throw COMException (0x8007203A): "The server is not operational"?

If anybody has a similar story, please post details below! I'm building an ASP.NET website which needs to support authentication against LDAP. On windows, LDAP auth can be performed via Active Directory (I'm no expert, but AD seems to simply be a particular flavor of ldap). I don't control the AD and/or LDAP servers. I've tried vario...

ActiveDirectoryMembershipProvider - "Unable to establish secure connection"

I am trying to configure an ActiveDirectoryMembershipProvider but I keep getting the message "Unable to establish secure connection with the server". I have seen online at the MSDN website that I should configure the trust level to unrestricted on my site and I still get that. Here is my example: <connectionStrings> <add name="...

entryUUID vs DN

When you need to refer to a precise ldap entry what do you prefer to use entryUUID or DN? I have a grid. every item is a ldap entry. Every row in the grid has a checkbox which contains the item's ID. It could be entryUUID or DN. Which one would you use? I would like to use entryUUID just to avoid situations like http://stackoverflow.co...

Active Directory Programming in C++ on Linux

Can anyone point me at good books for Active Directory Programming in C++ ( Linux ) or refer me to libaries for doing this? I need to authenticate application with is developed C++ and Sever has Active Directory , And before going to Start the application . I need to test user credentials information with Active Directory . ...

SSL Connection works in Console App but not Glassfish

I am having trouble connecting to an LDAP server in my JSP application. I am running the application on GlassFish v2. The following code works well in a console application but fails when used in the jsp: java.security.Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider()); System.setProperty("javax.net.ssl.trustStore"...

Authorization System Design Question

I'm trying to come up with a good way to do authentication and authorization. Here is what I have. Comments are welcome and what I am hoping for. I have php on a mac server. I have Microsoft AD for user accounts. I am using LDAP to query the AD when the user logs in to the Intranet. My design question concerns what to do with that A...

What is used to login in LDAP mail server?

If I added data on LDAP in this way: $ldapserver = "mail"; $ds = ldap_connect($ldapserver); $r = ldap_bind($ds, $ldaprootun, $ldaprootpw); add = ldap_add($ds, "cn=$full_name,ou=$domain,o=mygroup.com", $infonew); Then does that mean that when I log in to my account I will use: `cn="mynameHere",ou="domainIused",o=mygroup.co...

LDAP Implementation in .net

We're looking at implementing a new project that will use LDAP as it's security data store. What I'm looking for is a .net based implementation of the LDAP protocol. To be clear, I know about active directory, and I don't want a .net wrapper for active directory. What I'm looking for is an LDAP implementation in .net as there are plenty ...