473,799 Members | 2,999 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Domain Logons

i'm checking the logged on user at start of my program. if the user is not
in my database (e.g. he uses his private notebook instead of the company
desktop), i want to show a login screen where he can enter his windows
username and password. can i somehow send this to the logon server to check
if they are correct or do i have to enter passwords manually to my database
(i want to avoid this)?
Nov 21 '05 #1
4 1455
Yes, you can obtain users and groups from Active Directory. We're doing
authentication from within VB.NET against Server 2003.

Take a look at the following:

DirectoryEntry
DirectorySearch er
SearchResultCol lection
SearchResult

Specify your LDAP root.

Regards,

Tom

"NetRacer" <ne******@netsp eedway.net> wrote in message
news:d6******** *****@news.t-online.com...
i'm checking the logged on user at start of my program. if the user is not
in my database (e.g. he uses his private notebook instead of the company
desktop), i want to show a login screen where he can enter his windows
username and password. can i somehow send this to the logon server to
check if they are correct or do i have to enter passwords manually to my
database (i want to avoid this)?

Nov 21 '05 #2
hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
somehow possible with this, too?
"Tom Edelbrok" <an*******@anon ymous.com> schrieb im Newsbeitrag
news:vo5he.3791 4$0X6.6311@edtn ps90...
Yes, you can obtain users and groups from Active Directory. We're doing
authentication from within VB.NET against Server 2003.

Take a look at the following:

DirectoryEntry
DirectorySearch er
SearchResultCol lection
SearchResult

Specify your LDAP root.

Regards,

Tom

"NetRacer" <ne******@netsp eedway.net> wrote in message
news:d6******** *****@news.t-online.com...
i'm checking the logged on user at start of my program. if the user is
not in my database (e.g. he uses his private notebook instead of the
company desktop), i want to show a login screen where he can enter his
windows username and password. can i somehow send this to the logon
server to check if they are correct or do i have to enter passwords
manually to my database (i want to avoid this)?


Nov 21 '05 #3
I think you can still use the same methods as long as you can get to your
directory via LDAP.

"NetRacer" <ne******@netsp eedway.net> wrote in message
news:d6******** *****@news.t-online.com...
hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
somehow possible with this, too?
"Tom Edelbrok" <an*******@anon ymous.com> schrieb im Newsbeitrag
news:vo5he.3791 4$0X6.6311@edtn ps90...
Yes, you can obtain users and groups from Active Directory. We're doing
authentication from within VB.NET against Server 2003.

Take a look at the following:

DirectoryEntry
DirectorySearch er
SearchResultCol lection
SearchResult

Specify your LDAP root.

Regards,

Tom

"NetRacer" <ne******@netsp eedway.net> wrote in message
news:d6******** *****@news.t-online.com...
i'm checking the logged on user at start of my program. if the user is
not in my database (e.g. he uses his private notebook instead of the
company desktop), i want to show a login screen where he can enter his
windows username and password. can i somehow send this to the logon
server to check if they are correct or do i have to enter passwords
manually to my database (i want to avoid this)?



Nov 21 '05 #4
NetRacer,
You still use the Active Directory components & namespace for NT4, however
you need to use the WINNT provider (instead of the LDAP provider). For
details on the different providers, the following may be a good starting
point.

http://msdn.microsoft.com/library/de...ectoryADSI.asp

Unfortunately I don't have a sample handy...

Hope this helps
Jay

"NetRacer" <ne******@netsp eedway.net> wrote in message
news:d6******** *****@news.t-online.com...
| hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
| somehow possible with this, too?
|
|
| "Tom Edelbrok" <an*******@anon ymous.com> schrieb im Newsbeitrag
| news:vo5he.3791 4$0X6.6311@edtn ps90...
| > Yes, you can obtain users and groups from Active Directory. We're doing
| > authentication from within VB.NET against Server 2003.
| >
| > Take a look at the following:
| >
| > DirectoryEntry
| > DirectorySearch er
| > SearchResultCol lection
| > SearchResult
| >
| > Specify your LDAP root.
| >
| > Regards,
| >
| > Tom
| >
| >
| >
| > "NetRacer" <ne******@netsp eedway.net> wrote in message
| > news:d6******** *****@news.t-online.com...
| >> i'm checking the logged on user at start of my program. if the user is
| >> not in my database (e.g. he uses his private notebook instead of the
| >> company desktop), i want to show a login screen where he can enter his
| >> windows username and password. can i somehow send this to the logon
| >> server to check if they are correct or do i have to enter passwords
| >> manually to my database (i want to avoid this)?
| >>
| >>
| >
| >
|
|
Nov 21 '05 #5

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

Similar topics

1
1897
by: Dennis Bronstein | last post by:
What is the best way to limit logons to a website? We assign a user ID and password to each user. These are stored in the database (SQL Server). We want to do two things: 1. Only allow one person to use a specific user ID at a time. So if I log on as user ABC and then someone else tries to logon as ABC, they will not be allowed to logon. 2. Limit the total number of users logged on at a given time. So say there are 10 users and...
0
520
by: RobinB | last post by:
We gave created a web application that uses AD for authorization and authentication. The application can be used by domain users as well as the general public. What we currently have is 2 domains - Domain A is the corporate domain and Domain B is the application domain. Domain B trusts Domain A. What we want to do for general public users is to create users in Domain B (the application) and add them to a group in Domain B. For the...
2
1581
by: César Santos | last post by:
Is there a way to find out when someone logs into a computer and when they logoff? I want to see when an employyee has been logging in and out for the last past month. Is that possible?
5
2756
by: Bruno Mendonça | last post by:
My boss asked me to build a program to create a report with logon/logoff events for all users within our windows domain. I'm using .Net to do so and decided to have a program running on the Domain Controler to listen to all new events and send them to a database. This last part I haven't worked on yet, cause I can't tell which events are relevant to write to the db and which are not. I have managed to listen to all the security log...
3
11128
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code behind and don't use a domain then I can not change or remove that cookie's value on the client. If I subsequently create the cookie again in the codebehind then I actually end up with TWO cookies with the same name in the response. The cookie...
9
5423
by: Sam | last post by:
Validate domain name context Hello , Today I want to make sure from a given text is a domain style or not. for example : the domain can be example.com or example.com.us or example.us so , what is the pattren to check the given string is a domain style or not?
6
6680
Ali Rizwan
by: Ali Rizwan | last post by:
Any body knows how to make bootscreens and logons for XP without using any software. And how to apply Help
0
4834
Nepomuk
by: Nepomuk | last post by:
OK, let's do it! Prepare the picture Create a bmp picture, size 640 x 480, 16 Colors. MS Paint can save pictures in that format, many other graphic editors can do it too. Name your picture "boot.bmp" and copy it to your Windows folder (e.g. "C:\Windows\".
0
2877
by: sdgvfwe | last post by:
samba domain controller web hosting gratis eigene domain com domain ueberpruefen web site de + + + http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/ http://jhku.net/DOMAINS-KOSTENLOS/
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10491
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10247
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
7571
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
6809
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
5467
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
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
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
3762
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.