Hi All,
Trying to get PCNS working between AD and SQL. I think I have the AD side all setup based on what i am seeing in the event logs. I think the trouble lies in my vb code for the custom extension, whcih makes sense considering my limited coding experience.
For testing, I ran my SQL statement inside the SQL Server manager to make sure it worked. I used:
For testing, I ran my SQL statement inside the SQL Server manager to make sure it worked. I used:
ALTER LOGIN ["testUser"] WITH
PASSWORD='P@ssword1', which worked for reseting the SQL login. This was run against the Master database.
For the setpassword subroutine, I used this:
PublicSub SetPassword(ByVal csentry As Microsoft.MetadirectoryServices.CSEntry, _ByVal NewPassword AsString) _Implements Microsoft.MetadirectoryServices.IMAPasswordManagement.SetPasswordTryDim SqlCommand AsNew SqlCommandDim username AsString = csentry("samAccountname").Value.ToStringDim sqlString AsString = "ALTER LOGIN ["& username & "] WITH PASSWORD='"& NewPassword & "'" SqlCommand.CommandText = sqlString SqlCommand.Connection = sqlCon SqlCommand.ExecuteNonQuery() SqlCommand.Dispose()Catch ex As ExceptionThrowNew UnexpectedDataException("error during SetPassword"& ex.ToString)EndTryEndSub
is my string for the username really grabbing the samaccount name from AD? Is the csentry referring to the AD connector space?
I checked the mms_tracking_entries_history table in the FIM DB, and I see a status code of 0x80231308, but my web searches did not turn up any thing on that.
I would appreciate any assitance or suggestions.
Also, the target MA connects to the SQL server in question, but that MA is configured to look at a different database for the regular FIM syncs. Do I need to do something esle to the MA to get this to work? I did all the password sync enable stetps.
Also, the target MA connects to the SQL server in question, but that MA is configured to look at a different database for the regular FIM syncs. Do I need to do something esle to the MA to get this to work? I did all the password sync enable stetps.
Thanks