473,414 Members | 1,776 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Accessing MS AD using SSL and LDAPS

Hi,

I have a class which i am using to create user in the MS Active Directory. Previously the code was running fine and I can query the AD and also can create the user.

Now I want to submit my resquest to the AD using SSL and LDAPS.

But when I change my config file LDAP to LDAPS its throwing unknown error.

the code snipet is below..
string RootDSE;
DirectoryEntry _de = new DirectoryEntry(Path);
DirectorySearcher DSESearcher = new DirectorySearcher(_de);
try
{
RootDSE = DSESearcher.SearchRoot.Path;
RootDSE = RootDSE.Insert(7, ADUsersPath);
System.DirectoryServices.DirectoryEntry myDE = new DirectoryEntry(RootDSE,null,null,AuthenticationTyp es.Secure);
DirectoryEntries myEntries = myDE.Children;
DirectoryEntry myDirectoryEntry = myEntries.Add("CN=" + UserPrincipalName, "user");

when I am using LDAPS i am getting the error when adding the entry.
Help require to how to access AD over SSL and LDAPS.

Thanks in Advance
Apr 5 '07 #1
1 5660
kenobewan
4,871 Expert 4TB
Welcome to the site. What is your framework version and OS? What exactly is the error message? Have you see this article - How to enable LDAP over SSL with a third-party certification authority? Thanks.
Apr 5 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Chris Styles | last post by:
Dear All, I've been using some code to verify form data quite happily, but i've recently changed the way my form is structured, and I can't get it to work now. Originally : The form is...
6
by: archilleswaterland | last post by:
structures typedef struct{ char name; int age; float balance; }account; account xyx; accout *ptr;
2
by: KimD | last post by:
I'm filling a dataset with the return of a stored procedure. The dataset contains a number of tables which I am naming within the stored procedure, however when I try to access the tables using the...
3
by: AdamM | last post by:
Hi all, When I run my VbScript, I get the error: "ActiveX component can't create object: 'getobject'. Error 800A01AD". Any ideas what I did wrong? Here's my VBScript: dim o set...
1
by: Eirik Brattbakk | last post by:
Hi I have some problems accessing a soap service made in c# using an ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and CSoapWininetClient as template arguments with my stub...
0
by: andyt_2000_uk | last post by:
Not sure if this is the right group for this message but anyhelp or pointers to the right group would be great. I am trying to write a script that authenticates a user with AD from a website...
0
by: sallas | last post by:
I am trying to connect to a Active Directory on a Windows server from either a Debian machine or a Windows XP machine using Python. So far I can connect using the following: import sys import...
2
by: ramsphp | last post by:
Hi All, I need to access webcam which is in the server (remote machine) using IP address and port-numbers given. Can any one suggest me the way to handle this situation. Thanks in Advance,...
16
by: s0suk3 | last post by:
This code #include <stdio.h> int main(void) { int hello = {'h', 'e', 'l', 'l', 'o'}; char *p = (void *) hello; for (size_t i = 0; i < sizeof(hello); ++i) {
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.