Domain Logons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NetRacer

    #1

    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)?


  • Tom Edelbrok

    #2
    Re: Domain Logons

    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" <netracer@netsp eedway.net> wrote in message
    news:d61mrp$ibr $00$1@news.t-online.com...[color=blue]
    > 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)?
    >
    >[/color]


    Comment

    • NetRacer

      #3
      Re: Domain Logons

      hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
      somehow possible with this, too?


      "Tom Edelbrok" <anonymous@anon ymous.com> schrieb im Newsbeitrag
      news:vo5he.3791 4$0X6.6311@edtn ps90...[color=blue]
      > 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" <netracer@netsp eedway.net> wrote in message
      > news:d61mrp$ibr $00$1@news.t-online.com...[color=green]
      >> 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)?
      >>
      >>[/color]
      >
      >[/color]


      Comment

      • Ray Cassick

        #4
        Re: Domain Logons

        I think you can still use the same methods as long as you can get to your
        directory via LDAP.

        "NetRacer" <netracer@netsp eedway.net> wrote in message
        news:d6ce3s$7dr $05$1@news.t-online.com...[color=blue]
        > hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
        > somehow possible with this, too?
        >
        >
        > "Tom Edelbrok" <anonymous@anon ymous.com> schrieb im Newsbeitrag
        > news:vo5he.3791 4$0X6.6311@edtn ps90...[color=green]
        > > 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" <netracer@netsp eedway.net> wrote in message
        > > news:d61mrp$ibr $00$1@news.t-online.com...[color=darkred]
        > >> 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)?
        > >>
        > >>[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Jay B. Harlow [MVP - Outlook]

          #5
          Re: Domain Logons

          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" <netracer@netsp eedway.net> wrote in message
          news:d6ce3s$7dr $05$1@news.t-online.com...
          | hmm... we have no ActiveDirectory here, only a simple NT4 domain. is it
          | somehow possible with this, too?
          |
          |
          | "Tom Edelbrok" <anonymous@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" <netracer@netsp eedway.net> wrote in message
          | > news:d61mrp$ibr $00$1@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)?
          | >>
          | >>
          | >
          | >
          |
          |


          Comment

          Working...