ldap

Using DirectorySearcher to query multiple OUs

I have the following code: var directoryEntry = new DirectoryEntry(distributionListsListADSPath); var directorySearcher = new DirectorySearcher(directoryEntry) { SizeLimit = int.MaxValue, PageSize = int.MaxValue }; var result = directorySearcher.FindAll(); The problem is I want to search two seperate OUs. So what I do is r...

How to change passwords using System.DirectoryServices.Protocols

Our user store is an LDAP server called eDirectory. How do you change user passwords using System.DirectoryServices.Protocols? ...

Which ldap object mapper for python can you recommend?

I have to synchronize two different LDAP servers with different schemas. To make my life easier I'm searching for an object mapper for python like SQLobject/SQLAlchemy, but for LDAP. I found the following packages via pypi and google that might provide such functionality: pumpkin 0.1.0-beta1: Pumpkin is LDAP ORM (without R) for python....

Not able to enable LDAP on PHP 5.2.10 on 64 bit machine

I am trying to enable the LDAP extension for PHP 5.2.10 on a 64 bit windows 2003 server. I have followed the mandatory steps: Enabling the dll in php.ini Checking extensions directory. Ensuring that the dll is present in the extensions directory. Restarted the web server. However i have not been successful. Any help on how to procee...

WCF -> ILM -> Web Services -> SQL Server

My employer currently has most of its access to the database through C# sqlDataAdapters and sqlCommands on a WebServices server or components in applications. These are mostly Windows Forms apps that are ran on intranet and internet depending on their functionality. I have been researching WCF quite a bit and I feel it would be a good f...

How to store simple name value pairs in an ldap directory

I'm creating a user repository ldap backend for a series of web applications sharing the same users. I would like to store preference information in this ldap location. This way everything related to users is maintained in the same place and can be shared among all applications. I'm thinking of a general structure like this: ou=Peop...

Running Apache DS embedded in my application

Hi guys! I'm trying to run an embedded ApacheDS in my application. After reading http://directory.apache.org/apacheds/1.5/41-embedding-apacheds-into-an-application.html I build this: public void startDirectoryService() throws Exception { service = new DefaultDirectoryService(); service.getChangeLog().setEnabled( false ); P...

Importing a schema LDIF and content LDIF on every startup of ApacheDS?

Hi guys! I want my embedded ApacheDS to start up with a fresh schema/content when I run my tests. I tried to import a LDIF with this lines: LdifFileLoader ldifLoader = new LdifFileLoader(service.getAdminSession(), "path/to/my/export.ldif"); ldifLoader.execute(); But now ApacheDS stores the information in a directory server-wo...

Git with ldap authorization

Is there a way to authorize user via ldap on a git repository? Or phrased slightly differently: Is there a way to deny people pull/push if they are not in a specific ldap group? Edit: Yes, great idea using PAM and/or a hook. Does anyone have experience using git in combination with pam_ldap? ...

asp.net ldap authentication help/advice

I'm working on an ldap project in C# and all I'm doing is doing searches for users and pulling data that we need to be able to see on the fly. I'm creating an asp.net page for this. Right now I have it to where I have hard coded my own ldap username/password into my ldap search class but what I want is to be able to make it so anyone c...

Does System.DirectoryServices.DirectoryEntry contain a constructor that actually uses "domain\username" with Ldap?

Microsoft has a general purpose KB article (Q316748) describing how to authenticate against Active Directory using the DirectoryEntry object. In their example they produce a username value by concatenating the domain name and username into the standard NetBIOS format("domain\username") and passing that as a parameter to the directory ent...

web application - OC4J with Active Directory integration

i really need help. I'm searching for this from a very long time. I would like to make a servlet (application deployed on OC4J ) which will allow to enter users logged in domain (Active Directory) without any prompt for login and password. Is it possible to retrive in servlet : user name via getRemoteUser or getUserPrincipal methods with...

SQL Server LDAP authentication

Using SQL Server 2005, how can I authenticate a username/password pair against a non-AD LDAP server using NET ? ...

Ruby-LDAP and Snow Leopard

When I install Ruby-LDAP on my Snow Leopard box, all appears to go well: $ sudo gem install ruby-ldap Building native extensions. This could take a while... Successfully installed ruby-ldap-0.9.9 1 gem installed Installing ri documentation for ruby-ldap-0.9.9... Installing RDoc documentation for ruby-ldap-0.9.9... But when I run the ...

JAAS with LDAP password policy

Hello all, A user is accessing a restricted web application with JAAS (on Glassfish 2.1). LDAPRealm is used, and authentication is successfully performed from LDAP. A password policy should be installed for the users, so that they are forced to change passwords, have passwords of certain complexity/length, password failures and last N p...

Fetching additional response codes in LDAP (OpenDS) from Java

There is a password policy in place on OpenDS preventing i.e. multiple login failures. If user manages to pass the limit, the logs of LDAP server will show, i.e.: [17/Oct/2009:17:51:11 +0200] BIND RES conn=91 op=0 msgID=1 result=49 authFailureID=197126 authFailureReason="Rejecting a bind request for user uid=XXXXXXXX,ou=users,dc=XXXXXXX...

Using Ruby to access LDAP DIT

Hi, We use ACLs to grant access to svn repositories. The users/groups are stored in LDAP (openLDAP 2.4 (LDAP3). Does anyone know or used libraries/package (gems) I can use. Basically, I will traverse LDAP DIT and update my svn file based on that. Connect to ldaps://xxxxxxxxxxx:636 Traverse DIT (subtree based on 'ou') Read attributes ...

Dereferencing Aliases in LDAP using Spring

How to control LDAP Alias Dereferencing Mode using Java and Spring LDAP API? Similarly to how it is done using ldapsearch on linux. Example: ldapsearch -a never "(&(o=foo)(cn=bar))" cn ldapsearch -a always "(&(o=foo)(cn=bar))" cn ...

List all computers in active directory

Im wondering how to get a list of all computers / machines / pc from active directory? (Trying to make this page a search engine bait, will reply myself. If someone has a better reply il accept that ) ...

VBScript LDAP query to return mailserver property

Using the command line tool, ldapquery, the command is this: ldapsearch -h myldapserver uid=myloginname mailserver That returns a line like this: mailserver=CN=mymailserver/OU=xxx/O=xxxx I've tried every variation I can think of using VBS and I can query and get results returned from many other available properties, but some fail ...