{"action":"opened","issue":{"url":"https://api.github.com/repos/opnsense/core/issues/2242","repository_url":"https://api.github.com/repos/opnsense/core","labels_url":"https://api.github.com/repos/opnsense/core/issues/2242/labels{/name}","comments_url":"https://api.github.com/repos/opnsense/core/issues/2242/comments","events_url":"https://api.github.com/repos/opnsense/core/issues/2242/events","html_url":"https://github.com/opnsense/core/issues/2242","id":302300784,"number":2242,"title":"Imported ldap users: The username contains invalid characters with Active Directory UPN","user":{"login":"nantoine555","id":5659763,"avatar_url":"https://avatars1.githubusercontent.com/u/5659763?v=4","gravatar_id":"","url":"https://api.github.com/users/nantoine555","html_url":"https://github.com/nantoine555","followers_url":"https://api.github.com/users/nantoine555/followers","following_url":"https://api.github.com/users/nantoine555/following{/other_user}","gists_url":"https://api.github.com/users/nantoine555/gists{/gist_id}","starred_url":"https://api.github.com/users/nantoine555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nantoine555/subscriptions","organizations_url":"https://api.github.com/users/nantoine555/orgs","repos_url":"https://api.github.com/users/nantoine555/repos","events_url":"https://api.github.com/users/nantoine555/events{/privacy}","received_events_url":"https://api.github.com/users/nantoine555/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-05T13:32:01Z","updated_at":"2018-03-05T13:32:01Z","closed_at":null,"author_association":"NONE","body":"I'm using an Active Directory LDAP with \"userPrincipalName\" as username.\r\n\r\nSo I have usernames like \"pname@domain.com\".\r\n\r\nFirst import from ldap is ok, but further editing is raising an error \"The username contains invalid characters\"\r\n\r\nIs there a reason not to accept '@' for username, and less than 32 characters  in system_usermanager.php?\r\n\r\n\r\n        if (preg_match(\"/[^a-zA-Z0-9\\.\\-_]/\", $pconfig['usernamefld'])) {\r\n            $input_errors[] = gettext(\"The username contains invalid characters.\");\r\n        }\r\n        if (strlen($pconfig['usernamefld']) > 32) {\r\n            $input_errors[] = gettext(\"The username is longer than 32 characters.\");\r\n        }"}}
{"actor":{"display_login":"nantoine555"}}