{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/26409","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/26409/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/26409/comments","events_url":"https://api.github.com/repos/docker/docker/issues/26409/events","html_url":"https://github.com/docker/docker/issues/26409","id":175679528,"number":26409,"title":"Windows Server Container: System.DirectoryServices.AccountManagement.UserPrincipal not working","user":{"login":"martinh2011","id":1169790,"avatar_url":"https://avatars.githubusercontent.com/u/1169790?v=3","gravatar_id":"","url":"https://api.github.com/users/martinh2011","html_url":"https://github.com/martinh2011","followers_url":"https://api.github.com/users/martinh2011/followers","following_url":"https://api.github.com/users/martinh2011/following{/other_user}","gists_url":"https://api.github.com/users/martinh2011/gists{/gist_id}","starred_url":"https://api.github.com/users/martinh2011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinh2011/subscriptions","organizations_url":"https://api.github.com/users/martinh2011/orgs","repos_url":"https://api.github.com/users/martinh2011/repos","events_url":"https://api.github.com/users/martinh2011/events{/privacy}","received_events_url":"https://api.github.com/users/martinh2011/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/platform/windows","name":"platform/windows","color":"F6FBFF"},{"url":"https://api.github.com/repos/docker/docker/labels/version/1.12","name":"version/1.12","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-08T07:00:05Z","updated_at":"2016-09-27T10:24:24Z","closed_at":null,"body":"The FindByIdentity method on the System.DirectoryServices.AccountManagement.UserPrincipal object does not work inside a Windows Server Container. It throws an exception stating that the Server service is not started. Trying to start it also fails with an exception. See reproduction details below.\r\n\r\nIs this a bug in the Windows Server 2016 Container feature or is this part of the .Net Framework not supported?\r\n\r\n<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nClient:\r\n Version:      1.12.0\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   8eab29e\r\n Built:        Thu Jul 28 23:54:00 2016\r\n OS/Arch:      windows/amd64\r\n\r\nServer:\r\n Version:      1.12.0\r\n API version:  1.24\r\n Go version:   go1.6.3\r\n Git commit:   8eab29e\r\n Built:        Thu Jul 28 23:54:00 2016\r\n OS/Arch:      windows/amd64\r\n```\r\n\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 8\r\n Running: 0\r\n Paused: 0\r\n Stopped: 8\r\nImages: 5\r\nServer Version: 1.12.0\r\nStorage Driver: windowsfilter\r\n Windows:\r\nLogging Driver: json-file\r\nPlugins:\r\n Volume: local\r\n Network: overlay null nat\r\nSwarm: inactive\r\nSecurity Options:\r\nKernel Version: 10.0 14300 (14300.1000.amd64fre.rs1_release_svc.160324-1723)\r\nOperating System: Windows Server 2016 Standard Technical Preview 5\r\nOSType: windows\r\nArchitecture: x86_64\r\nCPUs: 4\r\nTotal Memory: 4 GiB\r\nName: vm-mh-w2k16\r\nID: YS7T:BZEP:I3VG:I3NY:KVB7:XH6P:SAJ5:J7SB:IEZC:HHWL:45TC:E2YR\r\nDocker Root Dir: C:\\ProgramData\\docker\r\nDebug Mode (client): false\r\nDebug Mode (server): false\r\nUsername: mh2015\r\nRegistry: https://index.docker.io/v1/\r\nInsecure Registries:\r\n 127.0.0.0/8\r\n```\r\n\r\n**Additional environment details (AWS, VirtualBox, physical, etc.):**\r\n\r\nWindows Server 2016 TP5\r\n\r\n**Steps to reproduce the issue:**\r\n1. clone https://github.com/martinh2011/uperrorrepro\r\n2. docker build -t uperrorrepro\r\n3. docker run -it uperrorrepro\r\n\r\n\r\n**Describe the results you received:**\r\nThe System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity API call throws an exception\r\n\r\n**Describe the results you expected:**\r\nThe System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity API returns a UserPrincipal object\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\nIf you do the same API call on a plain Windows Server 2016 Core, i.e. not inside a container this works. Trying to start the server service like this:\r\n\r\n1. docker run -it microsoft/windowsservercore powershell.exe\r\n2. In powershell inside the container: start-service server\r\n\r\nfails with\r\n\r\nFailed to start service 'server (lanmanserver'\r\nEventlog does not have anything useful, just\r\n\r\nThe Server service terminated with the following error: %%2\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/249826202","html_url":"https://github.com/docker/docker/issues/26409#issuecomment-249826202","issue_url":"https://api.github.com/repos/docker/docker/issues/26409","id":249826202,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T10:24:24Z","updated_at":"2016-09-27T10:24:24Z","body":"ping @patricklang PTAL"}}
{"actor":{"display_login":"thaJeztah"}}