Results 1 to 10 of 10

Thread: Window Credentials

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Window Credentials

    Is it possible to access Window Credentials information from any other scripting language without using asp/.NET?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Window Credentials

    You mean like integrated Windows authentication?

    That's an MSIE+IIS feature, I think.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Window Credentials

    Or do you mean like to log a user on like the API - CreateProcessWithLogon?

    I think WMI may also support some user objects/properties.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Window Credentials

    Quote Originally Posted by penagate
    You mean like integrated Windows authentication?

    That's an MSIE+IIS feature, I think.
    Kinda like that.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Window Credentials

    So what are you wanting to do with it?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Window Credentials

    Quote Originally Posted by RobDog888
    So what are you wanting to do with it?

    well ok

    basically, there is this AD that a php applications connects to.

    On the browser side, the client uses ActiveX or WScript to verify the currently logged on User and then redirects it to the php site once authenticated.

    I am not sure whether this script can get all the information of the User from the AD. If it can't, then it will have to get those information from within php, using ldap functions. Getting the information is painless provided the user credentials are present. However, the activeX emulates auto login, so no more password needed. There is no way of getting the password from php itself. Well, that is as far as I know.

    conundrum.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Window Credentials

    If this was ASP.NET it would be allot easier. Perhaps the ActiveX code is available to you to expand on/modify?

    If so, I have a asp.net thread on windows authentication that may give some insights or help.

    http://vbforums.com/showthread.php?t=349228
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Window Credentials

    Quote Originally Posted by oceanebelle
    well ok

    basically, there is this AD that a php applications connects to.

    On the browser side, the client uses ActiveX or WScript to verify the currently logged on User and then redirects it to the php site once authenticated.

    I am not sure whether this script can get all the information of the User from the AD. If it can't, then it will have to get those information from within php, using ldap functions. Getting the information is painless provided the user credentials are present. However, the activeX emulates auto login, so no more password needed. There is no way of getting the password from php itself. Well, that is as far as I know.

    conundrum.
    No matter what you use, you cannot get the password entered unless you replace the ActiveX login control with a custom login control on a web page that 'stores' the password in a session variable, which you then pass to the PHP page that needs to talk to LDAP. Note that in the custom PHP login page you'll need to perform authentication possibly using LDAP functions. Don't know what they are.

  9. #9
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Window Credentials


  10. #10

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Window Credentials

    Yeah i found some good sites as well, like enabling apache to use windows authentication (not just php) using mod_ldap

    everything revolves around an existing user and password that is pre-existent on the AD. We have worked out most of the kinks. However, as some kind of company process they are not allowing us at least have that application user and password. I guess there is no other way to it but cross our fingers and escalate.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width