473,800 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Connect to Openldap server over SSL

Hello

I use the following code to connect to an openldap server
This works just fine

_deRoot = new DirectoryEntry
"LDAP://ws244501.test.c om/ou=People,dc=te st,dc=com”
”cn=admin,ou= People,dc=test, dc=com"
"secretje"
AuthenticationT ypes.ServerBin
)

object ob = _deRoot.NativeO bject

Now I want to be able to connect to it over SSL to make updates secure
Using the following code does not succeed (server not operational
I did import the root certificate
I have tried with different Authentication flags but no result
I also tried LDAP://ws244501.test.c om:636/... but this had also no result

_deRoot = new DirectoryEntry
"LDAP://ws244501.test.c om/ou=People,dc=te st,dc=com”
”cn=admin,ou= People,dc=test, dc=com"
"secretje"
AuthenticationT ypes.ServerBind |Authentication Types.SecureSoc ketsLaye
)

object ob = _deRoot.NativeO bject

Does anybody know how to sucessfully connect to an LDAP server over SSL
What authentication flags do I use, what LDAP path do I use

Thanks
Johan
Jul 21 '05 #1
1 3157
>I have tried with different Authentication flags but no result.
I also tried LDAP://ws244501.test.c om:636/... but this had also no result.
Does anybody know how to sucessfully connect to an LDAP server over SSL?
What authentication flags do I use, what LDAP path do I use?


You might want to post your question in a more focussed newsgroup,
such as:

* microsoft.publi c.adsi.general
* microsoft.publi c.active.direct ory.interfaces

or check out the Yahoo! group on the topic,
http://groups.yahoo.com/group/ADSIANDDirectoryServices

which has a lot of folks who know all about how to bind in a secure
environment.

From what I know (very limited), you will definitely need to specify
port 636 (or whatever port you use for SSL LDAP) in your bind string,
and include at least the AuthenticationT ypes.SecureSock etsLayer flag -
that should do. (but as I said - I'm not a big expert in SSL
connectoins, especially not to OpenLDAP).

Marc
=============== =============== =============== =============== ====
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)i nova.ch
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2390
by: stegger | last post by:
I am trying to update a users password on OpenLDAP: $new = '{md5}' . base64_encode(pack('H*', md5($newpass_in_plaintext))); $this->result = ldap_modify($connection, "uid=testuser,cn=users,dc=test,dc=net", $new); I am authenticated and the operation succeeds (no errors), but the password does not change. How can I properly change a userPassword value in OpenLDAP?
1
5361
by: Durairaj Avasi | last post by:
#!/usr/bin/perl -w use Net::LDAP; use Net::LDAP::Util qw(ldap_error_name ldap_error_text); my $ldap = Net::LDAP->new('xy.webdurai.net', port=> 389) or die "$@"; $ldap->debug(15); my @args = ( base => 'DC=xy', scope => "subtree", filter => '(&(objectClass=user)(objectCategory=Person))',
1
493
by: jdelimon | last post by:
Hello I use the following code to connect to an openldap server This works just fine _deRoot = new DirectoryEntry "LDAP://ws244501.test.com/ou=People,dc=test,dc=com” ”cn=admin,ou=People,dc=test,dc=com" "secretje" AuthenticationTypes.ServerBin
14
7043
by: Marcus | last post by:
I have a function that simply returns TRUE if it can connect to a particular Sql Server 2005 express, or FALSE if it cannot. I am getting some strange error codes returned when the computer that sql server resides on is not reachable. The error is different depending on the connection string that I use. If I use the following connection string: "server=192.1.1.1; Initial Catalog=master; uid=The_User; password=The_Password; Connect...
0
1223
by: mmatthe | last post by:
Hi, one short question: it is possible to administer sessions in an OpenLDAP-server instead of files oder MySQL? If yes, can you give me a hint? THX
3
26656
by: dorrit.Riemenschneider | last post by:
I need to validate a user with username and password against our OpenLDAP active directory. This is my code: Private bool ValidateUser (string username, string password) { DirectoryEntry userEntry = new DirectoryEntry( ldapPath, username, password, AuthenticationTypes.Anonymous); //Bind to the native AdsObject to force authentication.
1
2214
by: Gert Albertse | last post by:
Is it possible to use forms authentication against an OpenLDAP server
2
5550
by: Jagath84 | last post by:
Hi all, I want to update openldap directory from c#. I used following code for make Directory entry as below. public static DirectoryEntry GetDirectoryEntry() { DirectoryEntry de = new DirectoryEntry(); de.Path = "LDAP://192.248.8.239/OU=People,DC=example,DC=com"; de.AuthenticationType = AuthenticationTypes.ServerBind;
0
1113
by: Jagath84 | last post by:
Hey, Anyone know how retrieve client ip addresses from openldap who are already logged in to the openldap domain. Is there any possible query those result can be obtained? Please someone knows about that help me......... Regards, Jagath.
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7576
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.