+ Post New Thread
Page 3 of 6 FirstFirst 123456 LastLast
Results 31 to 45 of 89
EduLock Thread, Steve21 presents: EduLock in Projects:; Originally Posted by Don__1 Are there still 3 passwords and if so, are they still as listed here - http://www.edugeek.net/forums/networ...tml#post663879 ...
  1. #31

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Quote Originally Posted by Don__1 View Post
    Are there still 3 passwords and if so, are they still as listed here - Solution to stop people disconnecting network cables (Testers wanted please)
    There are three, however they were updated as mentioned on website.

    eduapps.edutechhosting.co.uk


    What are the passwords?
    By default:
    Admin Login Password: adminlogin
    Admin Unlock Password: adminunlock
    Teacher Unlock Password: teacherunlock

    (remember regsettings too)

    Every update is done on that site, or in this thread. All old ones can be ignored.

    Hope that helps.

    Steve

  2. #32

    Join Date
    Mar 2008
    Posts
    47
    Thank Post
    5
    Thanked 12 Times in 9 Posts
    Rep Power
    16
    Thanks for the rapid reply Steve.

  3. #33

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Quote Originally Posted by Don__1 View Post
    Thanks for the rapid reply Steve.
    No problem, if you get any problems just gimme a shout, usually flicking through ispylist every now and then :P

    Steve

  4. #34
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    893
    Thank Post
    70
    Thanked 85 Times in 70 Posts
    Rep Power
    33
    Looks good, just a few suggesstions/questions:

    When you right click the sys tray icon, did you intend for this password field to still show white text on a white background, as opposed to it being a proper password field? I can understand why you might do this while developing, as you can highlight to see what has been written.

    Any chance this can run be made to run as a service, so that the process can be made to re-start if it crashes? It's only happened once while testing it.

    The passwords are currently stored in plain text in the registry, have you considered encyrpting?

    Is there a good reason for students to need to write to the registry in order for the app to run?

    Thanks

  5. #35

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Hey,

    Quote Originally Posted by meastaugh1 View Post
    When you right click the sys tray icon, did you intend for this password field to still show white text on a white background, as opposed to it being a proper password field? I can understand why you might do this while developing, as you can highlight to see what has been written.
    There was a reason I did it originally, Can't remember why now. Either it was because the specific way I did that input box it didn't give a "password-char" option, or it was due to querying it later. However this should "only" ever need to be logged into once while setting it up to deploy. The idea being you disable the login totally after deploying it. As the icon "in my view" shouldn't be visible anyway.

    Any chance this can run be made to run as a service, so that the process can be made to re-start if it crashes? It's only happened once while testing it.
    I can certainly look into it, yes.

    The passwords are currently stored in plain text in the registry, have you considered encyrpting?
    I have considered it, however,

    a) I'm assuming students can't view the registry anyway.
    b) If you encrypt the password you'd have to apply the password (as the reg files) already encrypting. Making it harder to deploy network wide password changes etc. As it is now, you can just deploy the regkey and it's done. (guess I can give the option to encrypt/not, in future versions)

    Is there a good reason for students to need to write to the registry in order for the app to run?
    From my memory (Been a little busy recently), The software automatically looks to "read" the keys from the registry. If they exist it won't write anything to the registry. However "if they don't exist" it'll create a regkey with the default passwords, as when the program loads it reads the keys, and loads them into itself as such.

    So "if" you can ensure the regkeys are deployed it shouldn't need write access (from how I remember it, I can check tonight or tomorrow though if you want a 100% answer) :P


    Hope that helps a bit? :P

    Steve

  6. #36
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    893
    Thank Post
    70
    Thanked 85 Times in 70 Posts
    Rep Power
    33
    Thanks for the quick reply. I take your points about the systray password field and encryption.

    I get the .net error regardless of whether the values are already created. It will only seem to launch if the user (student) has write access to the EduLock key.

  7. Thanks to meastaugh1 from:

    Steve21 (27th June 2011)

  8. #37

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Quote Originally Posted by meastaugh1 View Post
    Thanks for the quick reply. I take your points about the systray password field and encryption.

    I get the .net error regardless of whether the values are already created. It will only seem to launch if the user (student) has write access to the EduLock key.
    Could you screenie what the error is? :P Just curious. Will take a look at it tonight when I got source handy. Must be just me missing something obvious, but can't remember offhand.

    Steve

  9. #38
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    893
    Thank Post
    70
    Thanked 85 Times in 70 Posts
    Rep Power
    33
    Screenshot and exception below:

    Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Security.SecurityException: Requested registry access is not allowed.
       at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
       at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
       at EduLock.Form1.ReadFromReg()
       at EduLock.Form1.Form1_Load(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at System.Windows.Forms.Form.WmShowWindow(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    The Zone of the assembly that failed was:
    MyComputer
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///C:/WINDOWS/Microsoft.NET/Fra...7/mscorlib.dll
    ----------------------------------------
    EduLock
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Program Files/Edulock/Edulock.exe
    ----------------------------------------
    Microsoft.VisualBasic
        Assembly Version: 8.0.0.0
        Win32 Version: 8.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...isualBasic.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...089/System.dll
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...dows.Forms.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...em.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.42 (RTM.050727-4200)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...e.Remoting.dll
    ----------------------------------------
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    Steve21 presents: EduLock-edulockdotneterr.jpg

  10. Thanks to meastaugh1 from:

    Steve21 (27th June 2011)

  11. #39

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Quote Originally Posted by meastaugh1 View Post
    Screenshot and exception below:
    Many thanks, Will take a look tonight.

    Steve

  12. #40

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Doubled check code, and I stand by my earlier comment. If you deployed keys it won't or shouldn't write to it

    Can you confirm what your reg settings look like for it, obviouslyy hide password maybe I can shed some light if keys setup wrong

    Thanks
    Steve

  13. #41
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    893
    Thank Post
    70
    Thanked 85 Times in 70 Posts
    Rep Power
    33
    Hi Steve,

    I've tried it on XP this morning to ensure it's not a Win7 thing, I get the same problem on both OS.
    Steve21 presents: EduLock-edulockreg.jpg
    I've included a screenshot of the reg table from the MSI I am using to deploy.

    If I give everyone Full Control, the error goes away. If I withdraw that permission, the error comes back.

  14. #42

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Quote Originally Posted by meastaugh1 View Post
    If I give everyone Full Control, the error goes away. If I withdraw that permission, the error comes back.
    Can you confirm you're setting those reg keys to: HKEY_LOCAL_MACHINE\SOFTWARE\EduLock

    Not Local User etc? (Assuming it is from the #2 in regtable) just confusing me as to why it's doing this :P mmm.

    And you've double checked it's actually applied the regkeys to the right place? It's not missing them or something stupid?

    If it's not something silly I'll try to throw together a debugging version tonight, that hopefully you could just test on 1 computer, and it'll hopefully give the answer :P

    Many thanks,
    Steve

  15. #43
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    893
    Thank Post
    70
    Thanked 85 Times in 70 Posts
    Rep Power
    33
    Looks good to me. Regedit screenshot below. Thanks for your perseverance.
    Steve21 presents: EduLock-edulockreg2.jpg

  16. #44

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,824
    Thank Post
    371
    Thanked 543 Times in 506 Posts
    Rep Power
    184
    Quote Originally Posted by meastaugh1 View Post
    Looks good to me. Regedit screenshot below. Thanks for your perseverance.
    Click image for larger version. 

Name:	edulockreg2.jpg 
Views:	148 
Size:	99.3 KB 
ID:	10568
    Worked out what it is "I think" :P think it's me being silly.

    Code:
      Dim regKey As Object = Registry.LocalMachine.OpenSubKey("Software\EduLock", True)
    Is part of the line that reads the registry, and the true parameter opens it with write access. I'm assuming that's where it's going wrong as even though it's not writing anything, it needs access to open it like that.

    Can you quickly test this on the machine you're testing it on:

    WindowsApplication4.zip

    Hopefully the "New version" shouldn't break for you. If so I can make a change in the main program when I'm at home, with the source.

    Many thanks,
    Steve

  17. #45
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    893
    Thank Post
    70
    Thanked 85 Times in 70 Posts
    Rep Power
    33
    That's the one, new version retrieves reg values, old version generates the crash error.

  18. Thanks to meastaugh1 from:

    Steve21 (28th June 2011)



SHARE:
+ Post New Thread
Page 3 of 6 FirstFirst 123456 LastLast

Similar Threads

  1. Presents
    By russdev in forum General Chat
    Replies: 26
    Last Post: 3rd January 2007, 04:37 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •