Jump to content




Login with Roaming Profiles Don't work!

wireless

  • You cannot reply to this topic
4 replies to this topic

#1 TheEisbaer

  • Members
  • 37 posts

Posted 23 September 2012 - 04:30 PM

The program on the wiki 'Login with Roaming Profiles' don't work. I wrote it on 3 PCs on the Server
3 = Password Server
4 = Client
5 = Client
and every time I want to log in on PC 4 or 5 i get 'Not authorised'

I copied the code directly from the wiki and changed the numbers of the pcs.

I hope you can help me quickly :P/>

Password Server
Spoiler
Client 1 & 2
Spoiler


#2 sjele

  • Members
  • 334 posts
  • LocationSomewhere on the planet called earth

Posted 23 September 2012 - 05:00 PM

If this is in ssp goto

/<worldname>/computer/<computerid>/<prog. name>
And post all 3 codes. Much easyer to problem fix if you have the code you use

#3 TheEisbaer

  • Members
  • 37 posts

Posted 23 September 2012 - 05:10 PM

View Postsjele, on 23 September 2012 - 05:00 PM, said:

If this is in ssp goto

/<worldname>/computer/<computerid>/<prog. name>
And post all 3 codes. Much easyer to problem fix if you have the code you use
It's Server but here


Password Server
Spoiler
Client 1 & 2
Spoiler


#4 Fatal_Exception

  • New Members
  • 105 posts

Posted 23 September 2012 - 11:25 PM

The usernames and passwords are strings, so they need to be in quotes.
users = { "test", "test1" }
passwords = { "test", "test1" }


#5 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 17 October 2012 - 11:28 AM

I'm not sure if this ever got fixed or not but for anyone else who might be trying this and having an issue with it. Here is another issue with the script. You need to add a break to the for loop when the user and password match, otherwise the loop continues and reports false for the remaining indices in the tables.
for i,v in ipairs(users) do
  if message == v then
    valid = true
    password = passwords[i]
    break -- add this to stop the loop once you get a match
  else
    valid = false
  end
end






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users