{"action":"created","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2/issues/106","labels_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/106/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/106/events","html_url":"https://github.com/Adldap2/Adldap2/issues/106","id":111417758,"number":106,"title":"SID Sync","user":{"login":"strebl","id":6151204,"avatar_url":"https://avatars.githubusercontent.com/u/6151204?v=3","gravatar_id":"","url":"https://api.github.com/users/strebl","html_url":"https://github.com/strebl","followers_url":"https://api.github.com/users/strebl/followers","following_url":"https://api.github.com/users/strebl/following{/other_user}","gists_url":"https://api.github.com/users/strebl/gists{/gist_id}","starred_url":"https://api.github.com/users/strebl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strebl/subscriptions","organizations_url":"https://api.github.com/users/strebl/orgs","repos_url":"https://api.github.com/users/strebl/repos","events_url":"https://api.github.com/users/strebl/events{/privacy}","received_events_url":"https://api.github.com/users/strebl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Adldap2/Adldap2/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-14T15:01:43Z","updated_at":"2015-11-13T01:24:59Z","closed_at":null,"body":"I need to sync the SID. Therefore I'm doing something like that:\r\n```php\r\n/**\r\n * Set the user SID.\r\n */\r\npublic function setSidAttribute($value)\r\n{\r\n    $this->attributes['sid'] = Utilities::binarySidToText($value);\r\n}\r\n```\r\n\r\nIs there a reason to store the SID in binary? If not, maybe that's something you could do behind the scenes?"},"comment":{"url":"https://api.github.com/repos/Adldap2/Adldap2/issues/comments/156288759","html_url":"https://github.com/Adldap2/Adldap2/issues/106#issuecomment-156288759","issue_url":"https://api.github.com/repos/Adldap2/Adldap2/issues/106","id":156288759,"user":{"login":"ChadSikorra","id":388229,"avatar_url":"https://avatars.githubusercontent.com/u/388229?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadSikorra","html_url":"https://github.com/ChadSikorra","followers_url":"https://api.github.com/users/ChadSikorra/followers","following_url":"https://api.github.com/users/ChadSikorra/following{/other_user}","gists_url":"https://api.github.com/users/ChadSikorra/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadSikorra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadSikorra/subscriptions","organizations_url":"https://api.github.com/users/ChadSikorra/orgs","repos_url":"https://api.github.com/users/ChadSikorra/repos","events_url":"https://api.github.com/users/ChadSikorra/events{/privacy}","received_events_url":"https://api.github.com/users/ChadSikorra/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T01:24:59Z","updated_at":"2015-11-13T01:24:59Z","body":"@strebl It's actually better to store the user's GUID, as that is guaranteed to never change. Interesting read: https://technet.microsoft.com/en-us/library/cc961625.aspx . I did something similar for a project, as far as always referencing the user by a unique ID rather than their username.\r\n\r\nBoth the GUID and the SID take a a bit of manipulation to display in their \"proper\" string format, or at least the form we are all familiar with. I don't see a function yet for displaying the GUID in string form. But you essentially have the unpack it to a hex, then parse out the sections to construct its string form. Fun, huh? "}}