Hi Guys,
Need your help on this. I need to be able to get all the list of users in the Active Directory.
Steps that I did.
1. enable active directory in the Users - OK2. Manually created the User exactly the same username in the Active Directory - OK
Username: DomainName\Username
3. Tried to login to the Application Using Manually Created User- OK4. Added the Authentication.xif in the reference. - OK5. Test the AD_ListUser (method/action) - FAILEDI am getting the error 'The Supplied Argument Cannot Be null'. The only argument that needs to be supplied is TRUE or FALSE. I supplied TRUE in the Argument.
Hi Michael,
Can you get a full stacktrace for the error in Service Center?
Regards,
João Rosado
João Rosado wrote:
Hi João,
Here is the StackTrace Error in Service Center. Not sure if there are other setting that I need to do to be able to get past this error.
There should be another related error log with the stacktrace inside the extension, can you post that as well?
Regards,João Rosad
I just realize now that I reference the ActiveDirectory.xif but I have not configure this part. Do I need to configure this part first for the ActiveDirectory.xif to work?
Michael Chu wrote:
Already Configured this just in Case.
This are the only Error in Service Center, both are saying 'The Supplied Argument Cannot be Null'
The second log (the one that has "Extension metho" in the module) should have more stack information in the details.
I have same problem, I check the extension error log as following
The supplied arguments cannot be null. at System.DirectoryServices.AccountManagement.AuthenticablePrincipal..ctor(PrincipalContext context) at System.DirectoryServices.AccountManagement.UserPrincipal..ctor(PrincipalContext context) at OutSystems.NssActiveDirectory.CssActiveDirectory.MssAD_SearchUser(String ssSearch, Int32 ssSearchBy, Boolean ssActiveOnly, String ssIgnoreOU, RLADUserRecordList& ssADUsers) at ssCaseManagement.RssExtensionActiveDirectory.MssAD_SearchUser(HeContext heContext, String inParamSearch, Int32 inParamSearchBy, Boolean inParamActiveOnly, String inParamIgnoreOU, RecordList& outParamADUsers)
It looks for authentication credential, where can I configure these information?
You cannot simply list all AD-users.You have to specify the AD-domain and AD Group.First use AD_SetGlobalDomain to set the domain.The use AD_SetGlobalDomainContainerStore tho set the group (ContianerStore).
After that you should be able to list the users using AD_ListUsers