{"action":"created","issue":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/423","repository_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel","labels_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/423/comments","events_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/423/events","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/423","id":274067463,"number":423,"title":"How to disable/enable exist account?","user":{"login":"sonminh18","id":31029434,"avatar_url":"https://avatars0.githubusercontent.com/u/31029434?v=4","gravatar_id":"","url":"https://api.github.com/users/sonminh18","html_url":"https://github.com/sonminh18","followers_url":"https://api.github.com/users/sonminh18/followers","following_url":"https://api.github.com/users/sonminh18/following{/other_user}","gists_url":"https://api.github.com/users/sonminh18/gists{/gist_id}","starred_url":"https://api.github.com/users/sonminh18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonminh18/subscriptions","organizations_url":"https://api.github.com/users/sonminh18/orgs","repos_url":"https://api.github.com/users/sonminh18/repos","events_url":"https://api.github.com/users/sonminh18/events{/privacy}","received_events_url":"https://api.github.com/users/sonminh18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-15T08:07:28Z","updated_at":"2017-11-16T01:35:06Z","closed_at":null,"author_association":"NONE","body":"- Laravel Version: 5.5\r\n- Adldap2-Laravel Version: 2.0\r\n- PHP Version: 5.6\r\n\r\n### Description:\r\nHello, I have searched several days about how to disable and enable exist account on ldap server, but I can't find any solution for this issue. Please help!!  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/comments/344786939","html_url":"https://github.com/Adldap2/Adldap2-Laravel/issues/423#issuecomment-344786939","issue_url":"https://api.github.com/repos/Adldap2/Adldap2-Laravel/issues/423","id":344786939,"user":{"login":"sonminh18","id":31029434,"avatar_url":"https://avatars0.githubusercontent.com/u/31029434?v=4","gravatar_id":"","url":"https://api.github.com/users/sonminh18","html_url":"https://github.com/sonminh18","followers_url":"https://api.github.com/users/sonminh18/followers","following_url":"https://api.github.com/users/sonminh18/following{/other_user}","gists_url":"https://api.github.com/users/sonminh18/gists{/gist_id}","starred_url":"https://api.github.com/users/sonminh18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonminh18/subscriptions","organizations_url":"https://api.github.com/users/sonminh18/orgs","repos_url":"https://api.github.com/users/sonminh18/repos","events_url":"https://api.github.com/users/sonminh18/events{/privacy}","received_events_url":"https://api.github.com/users/sonminh18/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T01:35:06Z","updated_at":"2017-11-16T01:35:06Z","author_association":"NONE","body":"Hi,\r\nYes,I'm using Adldap2 package and I want to disable/enable LDAP account. But I have found the solution to disable or enable account by set attributes useraccountcontrol.\r\nDefault useraccountcontrol attributes for standard user is: 512. So if we plus 2 to this, It's disabled account.\r\n[https://support.microsoft.com/en-us/help/305144/how-to-use-the-useraccountcontrol-flags-to-manipulate-user-account-pro](url) \r\nHere is my code. It had working for my purpose.\r\n```\r\n$data=$this->adldap->getProvider('default')->search()->users()->find($username);\r\n$data->setAttribute('useraccountcontrol',514);\r\n$data->save();\r\n```\r\nThank for your answer."}}
{"actor":{"display_login":"sonminh18"}}