473,396 Members | 1,975 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,396 software developers and data experts.

How to Authenticate NDS server using C#

Ram

How to Authenticate NDS server using C#
Nov 15 '05 #1
3 4063
> How to Authenticate NDS server using C#

Are you talking about logging into an NDS (Novell Directory Service)
tree from C# ?

You can authenticate a USER against an NDS tree - you don't
authenticate NDS servers......

Marc

================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #2
Ram

Thank u Marc. i need to login to a NDS directory using a
username and password and to retrieve the attributes of
that user. i also want to create a new attribute under
that user and set a value for it . please help me

Ram
-----Original Message-----
How to Authenticate NDS server using C#
Are you talking about logging into an NDS (Novell

Directory Service)tree from C# ?

You can authenticate a USER against an NDS tree - you don'tauthenticate NDS servers......

Marc

================================================= ======== =======Marc Scheuner May The Source Be With You!Bern, Switzerland m.scheuner(at) inova.ch.

Nov 15 '05 #3
> Thank u Marc. i need to login to a NDS directory using a
username and password and to retrieve the attributes of
that user.


Try to bind to the user either by means of LDAP, or NDS - the two are
distinctly different providers, sometimes one works better than the
other:

DirectoryEntry deUser = new DirectoryEntry("LDAP://cn=John
Doe,cn=Users,dc=fabrikam,dc=com", "your user name", "your password");

// if the user credentials are invalid, your object will be null
if (deUser != null)
{
// access the user's attribute(s), checking for existence first
if (deUser.Properties.Contains("someattribute"))
{
if (deUser.Properties["someattribute"].Count > 0)
{

Console.WriteLine(deUser.Properties["someattribute"].Value.ToString();
}
}
}

So you need to know what your user is called, and where he resides
(which OU etc.).

Alternatively, you might get better results by using the NDS provider
- never used it myself from .NET, but it should work something like
this:

DirectoryEntry deUser = new
DirectoryEntry("NDS://MyNDSTree/O=MyOrg/OU=SomeOU/CN=John Doe", "your
user name", "your password");

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #4

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

Similar topics

2
by: michaaal | last post by:
I have had success using ASP to send out mail, however, how can I make it send mail using an external SMTP server that requires authentication? Thanks!
1
by: Next | last post by:
Hello, I sure could use someone's help : ) I need to authenticate users and securely upload files from laptops on the internet ( not on the same domain as server ) to a server on my domain....
2
by: allenj | last post by:
DB2 UDB 7.2 WSE Fixpak 9 Linux Red Hat 7.3 A very strange thing just happened w/ my DB2 server. I am on Linux and using NIS - the instance owner is in the servers /etc/passwd file. Suddenly,...
3
by: GC | last post by:
I'm looking to build a web app that authenticates against my current active directory. Anyone have any examples on how to do this? Thanks!
7
by: Sync Walantaji | last post by:
Hi, I would like to write a asp.net winform program to authenticate users on Active Directory. Can I do this with asp.net if the IIS server is not part of the Active directory domain? Is...
2
by: Alfred Salton | last post by:
I am posting a form with data which has timed-out and forced a login. I assumed that the following code would re-authenticate the session (assuming the supplied userName and password are correct)...
13
by: ALI-R | last post by:
I know how to authenticate to a webservice using either of these ways(Assuming that rService represents the webservice): 1) rService.Credentials = new...
1
by: robert | last post by:
In a DAV scheme with PROPFIND or GET (PROPFIND /test/ HTTP/1.1) and Basic AUTH to a MS SharePoint over https server (AUTH required), he responds 'WWW-Authenticate: NTLM' only: reply: 'HTTP/1.1...
4
by: Jon | last post by:
I am modifying an app for a customer in ASP.Net 1.1. The app is running on a server outside their network, yet they want to authenticate users against their internal active directory set up (they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.