Skip to main content
Known Participant
May 2, 2008
Question

How to make coldfusion identify my ID in network?

  • May 2, 2008
  • 3 replies
  • 419 views
I am build a intranet site with coldfusion 7.

Do you think if the coldfuison can get the person's network ID or person's active directory ID when a person access the intranet site?

What is the syntax to do this if it is possible.

Thanks

Mark
    This topic has been closed for replies.

    3 replies

    Inspiring
    May 2, 2008
    There is some information on this in chapter 8 of the book "Advanced Macromedia ColdFusion MX 7 Application Development" by Ben Forta.
    Inspiring
    May 2, 2008
    mark416 wrote:
    >
    > What is the syntax to do this if it is possible.

    Yes it is possible we do it all the time.

    <cfldap action="query"
    server="#variables.ldapConfig.server#"
    name="qUser"
    start="#variables.ldapConfig.start#"
    filter="samaccountname=#arguments.userName#"
    username="#variables.ldapConfig.domain#\variables.ldapConfig.user#"
    password="#variables.ldapConfig.password#"
    attributes = "#variables.ldapConfig.attributes#">


    If you combine this with 'Windows Integrated Security' In the Windows
    Web Server, then users connect through a Windows Network using a Windows
    Browser on a Windows Client the domain and user name can be collected
    through the cgi.auth_user parameter.
    Inspiring
    May 2, 2008
    This will depend on how your web server is configured. If you are requiring integrated or basic authentication in IIS with active directory then the username will be populated as the cgi.auth_user variable in ColdFusion.


    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=appSecurity_04.html#1110761

    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Expressions_8.html