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

How to pass login credencials to DirectoryEntry object

Hi All,
I am working with Active Directory using DirectoryServices libraries.
When i create DirectoryEntry object, i pass username and password as
parameters. But i am trying to do it without passing username and
password. How i can use the credencials of the user currently logged
in user on windows to create DirectryEntry object.

Any suggestion ???

Feb 15 '07 #1
1 3072
"killbill" <in**********@gmail.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
Hi All,
I am working with Active Directory using DirectoryServices libraries.
When i create DirectoryEntry object, i pass username and password as
parameters. But i am trying to do it without passing username and
password. How i can use the credencials of the user currently logged
in user on windows to create DirectryEntry object.

Any suggestion ???

If you don't specify credentials, then, the current user token will be used to access the
directory.

Willy.

Feb 16 '07 #2

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

Similar topics

2
by: Stephen Yip via .NET 247 | last post by:
Dear All, I would like to perform a simple task by program (VB.Net or VC#.Net). When a user logins the windows and try to run my program, how can I use his login information (username and...
2
by: Jessica | last post by:
When I create a single LDAP ActiveDirectory user and use DirectoryEntry.Invoke("SetPassword"...), the user is created and the password is set with no problems. However, when I try to add more...
1
by: kenguil | last post by:
I'm hoping that this is the right group to post this to and that someone will have an answer to this. Environment: 1) Laptop joined to domain "foo.com", logged in using cached credentials 2)...
3
by: Bruce Wood | last post by:
I've been mucking about with Environment.UserName and similar properties in .NET. I can get the user's login name for their machine, but unfortunately that doesn't get me much for users logged into...
1
by: Christopher | last post by:
We are using forms authentication in our web app and typically query our LDAP Servers by binding to the user node in the LDAP Tree. We usually see the following DN used as the DN for each user.....
7
by: Nick | last post by:
Platform: Visual Studio 2003 Language: C# NOTES: 1. Application will need to run on Windows 2000, Windows 2003, Windows XP 2. Client machines will be standalone NOT part of a domain. 3. I...
2
by: DavidADEW | last post by:
need a ASP.NET C# web page that lets a user enter their NT user name and password and passes to NT to see if they are a valid NT login. I am aware of the System.DirectoryServices.DirectoryEntry...
0
by: mig | last post by:
Hi I was writing a piece of code to create a new user login on my machine, which runs vista. I get this error: "General Access Denied Error" at newUser.CommitChanges() in the following code: ...
14
by: rcoco | last post by:
Oh! here comes Another problem I'm Not supposed to use Loginname anymore I'm supposed to use username is there anyway I can Do it in widows Authentic? Thanks
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.