ldap

Accessing Employee ID via LDAP in a Classic ASP/VBScript application

I've got an older ASP/VBScript app that I'm maintaining/upgrading and its currently using the older/depreciated means of gathering profile information - like below: strNTUser = Request.ServerVariables("AUTH_USER") strNTUser = replace(strNTUser, "\", "/") Set strNTUserInfo = GetObject("WinNT://"+strNTUser) 'You get the idea' When all I...

DirectoryEntry memberOf property returns full path

I need just the commonName of the groups a user is a member of. DirectoryEntry user = new DirectoryEntry("LDAP://cn=myuser...."); foreach(string path in user.Properties["memberOf"]) Console.WriteLine(path); then the memberOf property contains a set of strings, the full paths of the groups. That's makes sense, but it's not what I ...

How to capture standard error output from a Windows service?

I have an application that makes use of the Mozilla LDAP library. We're diagnosing a problem involving the LDAP library failing to make a connection to the server. I'm attempting to get additional information from the LDAP library by tossing a debug version of the lib in with the application and enabling debug using ldap_set_opt. Unfortu...

Is it possible to LDAP query users common to a set of groups

I need a list of all the users common to a known collection of groups, using a single LDAP query of our Active Directory. It would seem, from the our reading so far, that such is not possible, but I thought it best to ask the hive mind. ...

Could someone please explain LDAP?

I often hear things like "Can we load our employee info using LDAP?" Yet, the title "Lightweight Directory Access Protocol" makes me think of it as a protocol rather than a physical database management system like Oracle or MSSQL. So could someone please explain to me what LDAP is, how it's used, and how it basically works? Is LDAP si...

Missing field in the Active Directory?

Hello, Is there a field or anyway to retreave the smtp server of a user in the Active Directory? Edit1: Using Exchange of course thanks vinny ;) ...

LDAP error in Tomcat - TLS confidentiality required

I'm trying to configure a Realm in Tomcat to access an LDAP server with TLS security. My basic Realm configuration looks like this: <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" connectionURL="ldap://localhost:389/" userPattern="uid={0},ou=People,dc=nsdl,dc=org" /> I get an error like ...

Theory recomendation about LDAP

Hello I need to implement application that supports LDAP authentication. I want to know in detail how such network works. Can you recomend some reading about it, a book perhaps with broader explanation of LDAP authenticated networking or at least some online tutorials. I would like to see step by step guide of creating such network an...

how to authenticate ldap when not joined to a domain in Microsoft Active Directory using c#

For some reason, ldap and directory services does not work when the computer is not joined to the domain. The error messages from .net is domain not available. Anyone know what needs to be done? the basic... domainAndUsername = domain + @"\" + username; entry = new DirectoryEntry(_path, domainAndUsername, pwd); entry.Authenticatio...

Active Directory synchronization with transformation?

I'm not too familiar with Active Directory, so I may be taking the wrong approach here... I'd like to have my master active directory instance replicated to another instance on a continuous basis, with various attributes changed. For example, I may want the passwords changed for all users, set to something random in the replica copy. D...

What permissions are needed to read Active Directory as LDAP?

The setup: There is a central AD domain (CENTRAL) and multiple seperate forests, each of which has their own domain (BRANCH1, BRANCH2, BRANCH3) There are 2-way domain trusts between CENTRAL and all other domains. An application I'm working on runs on the CENTRAL domain and performs LDAP searches on all domains, using the credentials C...

Attribute is not being renamed by this code in Ldap.

/** * * ModifyRDN .java * Sample code to demostrate how ModifyRDN/ModifyDN works. * */ import javax.naming.; import javax.naming.directory.; import java.util.Hashtable; public class ModifyRDN { public static void main(String[] args) { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY,"co...

Can a Silverlight application authenticate versus a local LDAP/ActiveDirectory Server

If I have an externally hosted application (www.outside.com) outside the firewall but users within a company wanted to be able to enable LDAP authentication against their local (behind the firewall) AD server (acting as LDAP) or other LDAP server (call it ldap.inside.com), how would this be done. It seems technically possible in that wh...

access domain user thru adam

Hi I'm using redmine (a rails ticket management) and I'd like users to be able to log with their net user and password. I've followed the ADAM Step by Step Guide from Microsoft and setup an ADAM instance on my local machine. http://www.microsoft.com/downloads/details.aspx?familyid=5163B97A-7DF3-4B41-954E-0F7C04893E83&amp;displaylang=e...

What does LDAP solve?

I've been in touch with LDAP in many projects I've been involved in but, the truth be told, I don't really understand it. I thought it was just a person directory but after I discovered that it can contain any objects in a hierarchical structure. I installed openldap in my box and I found many tutorials regarding just the installation. ...

How do I convert a string into an OctetString (C#)?

I'm importing data into an LDAP store. The attribute in question is of type OctetString. I have a normal string that I need to get into that attribute. I'm using C# (.net 3.5) How do I do it? ...

Create a mailbox for an user via webservice on a remote exchange 2007 server. (C#)

EDIT ive got it almost, having and error message now that it can't find the exchange DB. I'm running the service on a different server then Exchange so I presume I have to use an UNC path. MyServer01\First Storage Group\Mailbox Database.edb does not work though... Hi! I'm getting frustrated here, feeling a massive headache coming up a...

Logging into Peoplesoft App-Designer in 2 Tier using LDAP authentication.

I have a database with LDAP login enabled. It works fine when logging in through the PIA or when logging into app-designer through the application server. I need to make app-designer allow me to login with 2-tier mode using LDAP authentication. Is this possible without customization? ...

Find out when a user's certificate is going to expire

Does anyone know how I could go about finding out when a certificate for user is set to expire? I know I can get pull all of the certificates for a given user by usin the following code: Set objUserTemplate = _ GetObject("LDAP://cn=userTemplate,OU=Management,dc=NA,dc=fabrikam,dc=com") arrUserCertificates = objUserTemplate.GetEx("us...

How can I get the Active Directory DialIn Permission setting from LDAP using VBScript?

In Active Directory, there is a tab called "Dial-In", and under that tab is a radio button control with three settings: Allow Access Deny Access Control access through remote access policy I'd like to write a VBScript to take a user name, and return the setting for that user. (I'm actually modifying an existing VBScript, which is why ...