ldap

Ask ActiveDirectory if a machine is a member of a group

This should be really easy but for some reason it doesn't seem to be. I want to ask AD if the current machine is a member of a particular group. Direct membership is fine. Group only contains 8 PC's and is extremely unlikely to grow beyond 30. C# code examples appreciated! ...

Nexus and LDAP - JNDI-Problem while authenticating users against OpenLDAP Server

I am using Nexus repository manager (nexus.sonatype.org) with the open source LDAP plugin (code.google.com/p/nexus-ldap/) and I get an error indicating that the wrong protocol version is used (details below). All the plugin does is using the JNDI LDAP service provider to connect to my LDAP Server. If you look at the stack trace in the ne...

LDAP Error:The directory service is not available

I have a problem with LDAP, I use apache directory server and I would add a new user .... I use Visual Studio and the code snippet is: public static void prova(string FullName) { DirectoryEntry container; DirectoryEntries ChildEntry; container = new DirectoryEntry("LDAP://localhost:10389/cn=user1,ou=users,ou=system",...

Python LDAP old password still working

I have the LDAP python module installed to authorise logins via active directory, but if I change the password, the new and the old one work together. Does anyone know how to resolve this issue? ...

Retrieve empty attributes of LDAP DN.

Hi Community! I am currently programming a tool (in ANSI C) for my company which reads from an LDAP Directory and outputs all the data in a specific format (that is: the name format of our old proprietary directory db). This is then handled by another tool which reads the output and so on ... don't ask. Anyways, for my "ldaplist ..." c...

How to divide responsibility between LDAP and RDBMS

I'm a lead developer on a project which is building web applications for my companies SaaS offering. We are currently using LDAP to store user data such as IDs, passwords, contanct details, preferences and other user specific data. One of the applications we are building is a reporting service that will both collect and present managem...

jBoss Portal LDAP Admin User

Hi guys, I've configured my jBoss Portal against our AD. Everything seems to work but now I'm facing a problem: How do I determine which AD group should be admin on the portal? Cheers and regards ...

LDAP query to retrieve list of department or company

Can anyone help me with this ? What I am trying to do is retrieve a distinct list of company from the AD using LDAP query. I wrote a query which returns all the company names, with duplicate values. What I am trying to achieve is to get a list of distinct companies from AD. My query for this is as given below. DistinguishedName used ...

iPlanet LDAP and C# PageResultRequestControl

I am trying to do a paged search on an iPlanet LDAP. Here's my code: LdapConnection ldap = new LdapConnection("foo.bar.com:389"); ldap.AuthType = AuthType.Anonymous; ldap.SessionOptions.ProtocolVersion = 3; PageResultRequestControl prc = new PageResultRequestControl(1000); string[] param = new string[] { "givenName" }; SearchRequest re...

Active Directory query troubleshooting

Hi, My customer uses the below query to pull the data from Active Directory into my application. CN=WebCalAdmin,OU=Security Groups,OU=Groups,DC=hasm,DC=com and getting the below error. Error: Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. I need to replicate the same...

List of email address to public folders in exchange

How do i get a list of all e-mail address for exchange public folders? Will reply on my own, will accept the best reply offered. ...

appending to hash while looping

I will make this quick. I'm using Ruby/LDAP to search using my base_dn criteria. I get a result back (of type Entry). I can convert object of type Entry to Hash with to_hash method. The problem is when the result is returned it is multiple objects of type Entry. I want to convert them to hash append them while looping. Look at this: co...

LDAP authentication server why ?

I have read about LDAP on wikipedia and I kind of understand what it is. However what I did not get what why so many organizations are using LDAP authentication server over having a simple table with userid and hashed password. LDAP server surely brings more complexity to the infrastructure. What gains justify this added complexity? ...

Does a LDAP library exist for JME?

Hi all, I would like to know if a LDAP library exists for JME. Does anyone know ? Best regards, Quentin ...

What gems should I use to have a Ruby app talk to an LDAP server?

My overall goal is to let users of my Rails app authenticate against our organization's ActiveDirectory server over LDAP. (Did I say that right?) I'd like to try the Ruby ActiveLDAP gem. The docs say it depends on either... RubyLDAP or... ruby-net-ldap Does it matter which one I use? Am I heading in the right general direction by ...

Why would the Net::LDAP gem prevent tests from running?

I have installed the ruby-net-ldap gem version 0.0.4 on my OS X (Snow Leopard) system. When I include the line... config.gem('ruby-net-ldap') in environment.rb, my tests won't run and I get this error... Missing these required gems: ruby-net-ldap You're running: ruby 1.8.6.0 at /usr/local/bin/ruby rubygems 1.3.5 at /Users/et...

Authenticate against Active Directory/ISA from php

I have a complicated problem, exacerbated by the fact I don't really know where to start! Over the last few years, I've developed a number of php web-based systems. When I built them, our network was ropey at best, so I thought nothing of creating my own username/password stuff. Since then, our network has become a lot more robust, our...

Authenticating AD via LDAP with a TRUST via PHP

I've got php code that works as expected to authenticate a user against an Active Directory domain using LDAP. The same domain now has a one-way trust enabled - users in the trusted domain don't appear to be visible. Example group named "mygroup" with the members: local_dir_1 local_dir_2 foreign_dir_1 Queried with the filter: (m...

How to define an auto-increment number for LDAP structure?

Hi all, I have one attribute (groupIDNumber), I want to make it work as auto-increment number? How can we define that attr? Thank for your help, -nm ...

LDAPS - shouldn't certificate be assign to exactly the same hostname to which I try to connect?

Hi, I try to connect to an LDAP server by LDAPS protocol, and I define the URL using the IP of the server. The keystore I use contain a certificate which was issued to this server, but the subject DN contain the hostname. Shouldn't it fail? Here is the code: public class LdapConnection { private String host = "1.2.3.4"; //the c...