{"action":"created","issue":{"url":"https://api.github.com/repos/pgina/pgina/issues/260","labels_url":"https://api.github.com/repos/pgina/pgina/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/pgina/pgina/issues/260/comments","events_url":"https://api.github.com/repos/pgina/pgina/issues/260/events","html_url":"https://github.com/pgina/pgina/issues/260","id":100637595,"number":260,"title":"Internal error: LdapServer object not available","user":{"login":"rwpucko","id":13772016,"avatar_url":"https://avatars.githubusercontent.com/u/13772016?v=3","gravatar_id":"","url":"https://api.github.com/users/rwpucko","html_url":"https://github.com/rwpucko","followers_url":"https://api.github.com/users/rwpucko/followers","following_url":"https://api.github.com/users/rwpucko/following{/other_user}","gists_url":"https://api.github.com/users/rwpucko/gists{/gist_id}","starred_url":"https://api.github.com/users/rwpucko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwpucko/subscriptions","organizations_url":"https://api.github.com/users/rwpucko/orgs","repos_url":"https://api.github.com/users/rwpucko/repos","events_url":"https://api.github.com/users/rwpucko/events{/privacy}","received_events_url":"https://api.github.com/users/rwpucko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-12T21:16:19Z","updated_at":"2015-08-21T13:31:59Z","closed_at":"2015-08-21T13:31:58Z","body":"Currently trying to install Pgina version 3.1.8.0 on a Windows 64 bit system for an unattended install. I'm able to deploy Pgina scripted using the silent command and then apply my registry settings. \r\n\r\nI'm using the LDAP module, Local Machine, and Single User Login. After i install Pgina and apply the registry key and reboot the system i am unable to log into the computer using Pgina. I receive an error message of \"Internal error: LdapServer object not available\"\r\n\r\nIf i open up Pgina and look at the plugins i am unable to see the Single User Login. If i go into the registry and delete the folder which contains  the Single User Login and restart the Pgina client i see the plugin and if i reconfigure the plugin it adds it back into the registry (same as what was originally imported).\r\n\r\nIt is very strange and i have no idea why it doesn't work as expected. All other plugins seem to work fine, but the single user login has issues. \r\n\r\nAny thoughts? \r\n\r\n--------------------------\r\n\r\nSection of Configuration Log:\r\n\r\n2015-08-12 16:48:08,026 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.Sample.SimplePlugin from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.Sample.dll uuid: 16fc47c0-f17b-4d99-a820-edbf0b0c764a\r\n2015-08-12 16:48:08,042 [2120|1|DEBUG] SessionLimitPlugin: Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:08,042 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.SessionLimit.PluginImpl from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.SessionLimit.dll uuid: d73131d7-7af2-47bb-bbf4-4f8583b44962\r\n2015-08-12 16:48:08,057 [2120|1|ERROR] PluginLoader: Error loading C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.SingleUser.dll: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'pGina.Plugin.SingleUser.Settings' threw an exception. ---> System.Security.Cryptography.CryptographicException: Key not valid for use in specified state.\r\n\r\n   at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)\r\n   at Abstractions.Settings.DynamicSettings.SetDefaultEncryptedSetting(String name, String value, Byte[] optionalEntropy)\r\n   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)\r\n   at pGina.Plugin.SingleUser.Settings.Init()\r\n   at pGina.Plugin.SingleUser.Settings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at pGina.Plugin.SingleUser.Settings.Init()\r\n   at pGina.Plugin.SingleUser.PluginImpl..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)\r\n   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, Boolean nonPublic)\r\n   at System.Activator.CreateInstance(Type type)\r\n   at pGina.Core.PluginLoader.LoadPluginsFromDir(String dir)\r\n2015-08-12 16:48:08,057 [2120|1|DEBUG] PluginLoader: Loading plugins from C:\\Program Files\\pGina\\Plugins\\Contrib\r\n2015-08-12 16:48:08,073 [2120|1|DEBUG] EmailAuthPlugin: Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:08,073 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.Email.EmailAuthPlugin from plugin: C:\\Program Files\\pGina\\Plugins\\Contrib\\pGina.Plugin.Email.dll uuid: ec3221a6-621f-44ce-b77b-e074298d6b4e\r\n2015-08-12 16:48:08,073 [2120|1|DEBUG] RADIUSPlugin: Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:08,073 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.RADIUS.RADIUSPlugin from plugin: C:\\Program Files\\pGina\\Plugins\\Contrib\\pGina.Plugin.RADIUSPlugin.dll uuid: 350047a0-2d0b-4e24-9f99-16cd18d6b142\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] UsernameModPlugin: Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.UsernameMod.UsernameModPlugin from plugin: C:\\Program Files\\pGina\\Plugins\\Contrib\\pGina.Plugin.UsernameMod.dll uuid: 98477b3a-830d-4bee-b270-2d7435275f9c\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader: Plugins loaded, list follows: \r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   LDAP -> 0f52390b-c781-43ae-bd62-553c77fa4cf7\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   Local Machine -> 12fa152d-a2e3-4c8d-9535-5dcd49dfcb6d\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   MySQL -> a89df410-53ca-4fe1-a6ca-4479b841ca19\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   MySQL Logger -> b68cf064-9299-4765-ac08-acb49f93f892\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   Simple Demonstration -> 16fc47c0-f17b-4d99-a820-edbf0b0c764a\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   Session Limit -> d73131d7-7af2-47bb-bbf4-4f8583b44962\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   Email Authentication -> ec3221a6-621f-44ce-b77b-e074298d6b4e\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   RADIUS Plugin -> 350047a0-2d0b-4e24-9f99-16cd18d6b142\r\n2015-08-12 16:48:08,088 [2120|1|DEBUG] PluginLoader:   Modify Username Plugin -> 98477b3a-830d-4bee-b270-2d7435275f9c\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Loading plugins from C:\\Program Files\\pGina\\Plugins\\Core\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] LdapPlugin: LDAP Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.Ldap.LdapPlugin from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.Ldap.dll uuid: 0f52390b-c781-43ae-bd62-553c77fa4cf7\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] LocalMachine: Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.LocalMachine.PluginImpl from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.LocalMachine.dll uuid: 12fa152d-a2e3-4c8d-9535-5dcd49dfcb6d\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.MySQLAuth.PluginImpl from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.MySQLAuth.dll uuid: a89df410-53ca-4fe1-a6ca-4479b841ca19\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.MySqlLogger.PluginImpl from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.MySqlLogger.dll uuid: b68cf064-9299-4765-ac08-acb49f93f892\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] SimplePlugin: Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.Sample.SimplePlugin from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.Sample.dll uuid: 16fc47c0-f17b-4d99-a820-edbf0b0c764a\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] SessionLimitPlugin: Plugin initialized on NEW-VMWARE-42 in PID: 2120 Session: 1\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Created plugin object type: pGina.Plugin.SessionLimit.PluginImpl from plugin: C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.SessionLimit.dll uuid: d73131d7-7af2-47bb-bbf4-4f8583b44962\r\n2015-08-12 16:48:09,912 [2120|1|ERROR] PluginLoader: Error loading C:\\Program Files\\pGina\\Plugins\\Core\\pGina.Plugin.SingleUser.dll: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'pGina.Plugin.SingleUser.Settings' threw an exception. ---> System.Security.Cryptography.CryptographicException: Key not valid for use in specified state.\r\n\r\n   at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)\r\n   at Abstractions.Settings.DynamicSettings.SetDefaultEncryptedSetting(String name, String value, Byte[] optionalEntropy)\r\n   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)\r\n   at pGina.Plugin.SingleUser.Settings.Init()\r\n   at pGina.Plugin.SingleUser.Settings..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at pGina.Plugin.SingleUser.Settings.Init()\r\n   at pGina.Plugin.SingleUser.PluginImpl..ctor()\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)\r\n   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)\r\n   at System.Activator.CreateInstance(Type type, Boolean nonPublic)\r\n   at System.Activator.CreateInstance(Type type)\r\n   at pGina.Core.PluginLoader.LoadPluginsFromDir(String dir)\r\n2015-08-12 16:48:09,912 [2120|1|DEBUG] PluginLoader: Loading plugins from C:\\Program Files\\pGina\\Plugins\\Contrib"},"comment":{"url":"https://api.github.com/repos/pgina/pgina/issues/comments/133425798","html_url":"https://github.com/pgina/pgina/issues/260#issuecomment-133425798","issue_url":"https://api.github.com/repos/pgina/pgina/issues/260","id":133425798,"user":{"login":"rwpucko","id":13772016,"avatar_url":"https://avatars.githubusercontent.com/u/13772016?v=3","gravatar_id":"","url":"https://api.github.com/users/rwpucko","html_url":"https://github.com/rwpucko","followers_url":"https://api.github.com/users/rwpucko/followers","following_url":"https://api.github.com/users/rwpucko/following{/other_user}","gists_url":"https://api.github.com/users/rwpucko/gists{/gist_id}","starred_url":"https://api.github.com/users/rwpucko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwpucko/subscriptions","organizations_url":"https://api.github.com/users/rwpucko/orgs","repos_url":"https://api.github.com/users/rwpucko/repos","events_url":"https://api.github.com/users/rwpucko/events{/privacy}","received_events_url":"https://api.github.com/users/rwpucko/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T13:31:59Z","updated_at":"2015-08-21T13:31:59Z","body":"Hans,\r\n\r\nThanks for the feedback. I will do so!\r\n\r\nHave a nice weekend,\r\n\r\nBob\r\n\r\nFrom: Hans Wurst [mailto:notifications@github.com]\r\nSent: Friday, August 21, 2015 7:28 AM\r\nTo: pgina/pgina <pgina@noreply.github.com>\r\nCc: Pucko, Robert <rwpucko@ua.edu>\r\nSubject: Re: [pgina] Internal error: LdapServer object not available (#260)\r\n\r\n\r\nthe stuff is far more complicated than i tough\r\n\r\nplap is working only in a domain environment\r\nbut pgna doesnt work on a domain machine\r\n\r\nyou should close this ticket and open another one\r\nexplaining your machine- and server-setup\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/pgina/pgina/issues/260#issuecomment-133410179>.\r\n"}}