On Mon, Jan 4, 2016 at 7:12 AM, Jakub Hrozek <jhrozek@redhat.com> wrote:

> On 30 Dec 2015, at 17:58, Frank Ritchie <frankaritchie@gmail.com> wrote:
>
> Hi all,
>
> Looking to have my cake and eat it too.
>
> I have alot of users that have been using Winbind for years. They currently log in with the workgroup, ie:
>
> WORKGROUP+username

Did you really use the plus-sign?

>
> I would like to roll out SSSD with the ad provider. I would ideally like for a user to be able to log in as:
>
> WORKGROUP+username
>
> or
>
> username
>
> and sssd would know this is the same AD user.

Please check the re_expression option, you'll want to tweak it to accept all forms you need. Please also note that the output format is controlled by a different option (full_name_format).

You'll also want to rm the cache after changing the input/output format.

>
> Is this possible?
>
> thx


FYI, we use the "+" in some cases to, and had to adapt the regex to this for it to work in newer sssd releases:

re_expression = (?P<name>.+)

Franky