We are using the mock server for a few months now and everything is great. The system we test used to use the attribute "sAMAccountName" to search for users so our config looked like that:
{ "port": 3004, "userLoginAttribute": "sAMAccountName", "searchBase": "DC=hedgeservtest,DC=com", "searchFilter": "(sAMAccountName={{user}})" }
The problem is that due to recent changes we now have to search by email in some cases. So we changed the config
{ "port": 3004, "userLoginAttribute": "mail", "searchBase": "DC=hedgeservtest,DC=com", "searchFilter": "(mail={{user}})" }
But I am not sure how to combine both of those so we can search by both. I tried to change the filter like that "|("(mail={{user}})"(mail={{user}}))" but I've no idea what to do with "userLoginAttribute".
Is this use case even possible with this server?
We are using the mock server for a few months now and everything is great. The system we test used to use the attribute "sAMAccountName" to search for users so our config looked like that:
{ "port": 3004, "userLoginAttribute": "sAMAccountName", "searchBase": "DC=hedgeservtest,DC=com", "searchFilter": "(sAMAccountName={{user}})" }
The problem is that due to recent changes we now have to search by email in some cases. So we changed the config{ "port": 3004, "userLoginAttribute": "mail", "searchBase": "DC=hedgeservtest,DC=com", "searchFilter": "(mail={{user}})" }
But I am not sure how to combine both of those so we can search by both. I tried to change the filter like that "|("(mail={{user}})"(mail={{user}}))" but I've no idea what to do with "userLoginAttribute". Is this use case even possible with this server?