1 Reply Latest reply on Sep 5, 2007 5:57 PM by Michael

    ColdFusion/.NET/ Active Directory Integration

      Any ideas what's up with this code? Of note, I'm pretty clueless about active directory and .net!
        • 1. Re: ColdFusion/.NET/ Active Directory Integration
          Michael Level 1
          What exactly is the problem?

          There are a couple of things that may not be right.

          1. You need to set the userPrincipalName attribute. At the same time, set the sAMAccountName attribute. userPrincipalName is generally the email address. user@domain.com. sAMAccountName is just the username part of the email address.

          2. You need to call the de.setInfo() method after setting the userPrincipalName, but BEFORE setting the password. This actually creates the directory object. You can't set a password on an object that doesn't yet exist in the directory.