Active Directory authentication / authorisation

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

    Active Directory authentication / authorisation

    I have been toying with the idea of having an Active Directory
    authentication / authorisation functionality in MS Access; but there
    is not much useful info around.

    I have built these functionalities for some applications (JAVA, PHP).
    The parameters used there are the LDAP parameters for AD:

    *searchFilter: (objectClass=us er)
    *searchBase: OU=register,OU= applications,DC =inside,DC=myco mpany,DC=com
    *adminPassword: Password
    *adminName: CN=LDAP
    Lookup,OU=Servi ces,OU=applicat ions,DC=inside, DC=mycompany,DC =com
    *ldapURL: ldap://ldap.nicta.net

    But I have not had much experience with LDAP queries using VBA :-(

    Is there any sample code showing the correct synthax and appropriate
    functions to use these parameters in a VBA for Access environment?

    My idea is to have users presented with a login form; if they
    authenticate successfully against AD then I can manage their
    authorisation in locally in MS Access.

    An even better scenario would be to also check if they belong to a
    specific AD group - this way I could also manage authorisation using
    AD.

    I am using Access2k3 on Win XP S2; the AD service supports LDAP v4.

    Any help would be greatly appreciated.

  • Tony Toews [MVP]

    #2
    Re: Active Directory authentication / authorisation

    Max Vit <mvit@safe-mail.netwrote:
    >I have been toying with the idea of having an Active Directory
    >authenticati on / authorisation functionality in MS Access; but there
    >is not much useful info around.
    Here's a dump of everything I found a year or go as is in OneNote. You'll have to
    figure out which of these links are appropriate to your scenario. I built a tool
    that could create folders and subfrlders by job with different permissions for the
    subfolders which varied by group.

    nternet resources
    Programmaticall y Set NTFS File System Folder Permissions

    Enumerating Local Groups and Descriptions with NetLocalGroupEn um
    Pasted from <http://vbnet.mvps.org/code/network/netlocalgroupen umdesc.htm>

    Enumerating Members of a Group with NetLocalGroupGe tMembers
    Pasted from <http://vbnet.mvps.org/code/network/netgocalgroupge tmembers.htm>

    Xcacls.exe
    Pasted from <http://support.microso ft.com/default.aspx?sc id=KB;EN-US;825751>

    How To Use High-Level Access Control APIs from Visual Basic
    Pasted from <http://support.microso ft.com/default.aspx?sc id=kb;EN-US;295004>




    Following might do everything I want.


    ldap



    Active Directory Service Interfaces Quick-start Tutorials
    Pasted from
    <http://msdn.microsoft. com/library/en-us/adsi/adsi/adsi_quick-start_tutorials .asp?frame=true >


    IADsAccessContr olEntry
    Pasted from
    <http://msdn.microsoft. com/library/en-us/adsi/adsi/iadsaccesscontr olentry.asp?fra me=true>



    An ADSI Primer, Part 11: More on Scripting Permissions and Auditing (Windows
    Scripting though)
    Pasted from
    <http://www.windowsitpr o.com/WindowsScriptin g/Article/ArticleID/7456/7456.html>


    HOWTO: Use ADsSecurity.dll to Remotely Add Local Account ACEs to an NTFS File
    Pasted from <http://support.microso ft.com/default.aspx?sc id=kb;en-us;Q285998>

    How To Use ADSI to Set Automatic Inheritance of File/Folder Permissions
    Pasted from <http://support.microso ft.com/kb/266461/EN-US/>



    Various constants are at the following:


    Security and Access Rights



    How To Use ADSI to Set Automatic Inheritance of File/Folder Permissions
    Pasted from <http://support.microso ft.com/default.aspx?sc id=kb;en-us;266461>
    VBScript recursive changing of subfolders


    IADsAccessContr olEntry Property Methods



    HOWTO: Use ADsSecurity.dll to Remotely Add Local Account ACEs to an NTFS File
    Pasted from <http://support.microso ft.com/default.aspx?sc id=kb;en-us;Q285998>

    How To Use ADsSecurity.dll to Add an Access Control Entry to an NTFS Folder
    Pasted from <http://support.microso ft.com/default.aspx?sc id=kb;en-us;Q279682>

    --
    Tony Toews, Microsoft Access MVP
    Please respond only in the newsgroups so that others can
    read the entire thread of messages.
    Microsoft Access Links, Hints, Tips & Accounting Systems at

    Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/

    Comment

    • Max Vit

      #3
      Re: Active Directory authentication / authorisation

      Hi Tony - Thanks a lot, very useful information!

      Once I find some suitable solution I'll post the code here for the
      benefit of others.

      Comment

      Working...