+ Reply to Thread
Results 1 to 4 of 4

Thread: Changing passwords for SIMS users by script

  Share/Bookmark
  1. #1

    Reputation

    Join Date
    Feb 2008
    Posts
    3
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Changing passwords for SIMS users by script

    As System Manager 7 is a long way off (relatively speaking)

    Does anyone use/have any scripts they use to change passwords in SIMS.

    The kind of thing I was thinking of:
    • To have a script run which will reset passwords monthly and create a list of the new passwords in a text file.
    • To have a script that would change a singe user password which is constant in several school databases

    In a search before postin DBPwdChg.exe came up - anyone know what this does?

  2. #2

    Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation
    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    Rochdale, Lancashire
    Posts
    8,813
    Thank Post
    309
    Thanked 611 Times in 554 Posts
    Rep Power
    120

    Default

    If you come up with a solution please let me know

    Thanks

  3. #3

    Reputation
    Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation
    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    5,115
    Thank Post
    104
    Thanked 749 Times in 570 Posts
    Rep Power
    150

    Default

    It is one thing that Sims lacks, however I have read articles (on these forums) whereby you can link the Sims logon with Active Directory. Active Directory does allow you to force users to reset their password at first logon or whenever necessary.

  4. #4

    Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation Reputation
    jinnantonnix's Avatar
    Join Date
    Nov 2007
    Location
    Wales
    Posts
    1,444
    Blog Entries
    7
    Thank Post
    44
    Thanked 211 Times in 174 Posts
    Rep Power
    55

    Default

    I did have a bash at it, but I couldn't quite get it.

    It sort of works, but fails when you try to log in, so I suppose it doesn't really work at all.

    Here's what I've got, perhaps it will give someone a toe-hold on the problem...





    use testsims


    declare @login_name as varchar(255)
    declare @user_id as varchar(255)
    declare @person_id as varchar(255)
    declare @password_generated as varchar(255)
    declare @new_password as varchar(255)
    declare @new_password_encrypted as varchar(255)




    set @login_name = 'user1'
    set @password_generated = 'QWERTYUIOP'



    declare @new_password_generated_encrypted varchar(255)
    select @new_password_generated_encrypted = sims.db_fnc_cesencrypt(@password_generated, default)

    -- password now stored in @new_password_generated_encrypted
    select @new_password_generated_encrypted

    -- now need to get the person_id for out login (user1)
    select @person_id = person_id from sims.db_user
    where login_name = @login_name

    select @person_id

    --now reset the password
    exec sims.mnw_pix_password_reset @person_id, @password_generated

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Prevent users changing wallpaper ?
    By pinemarten in forum How do you do....it?
    Replies: 14
    Last Post: 14-01-2010, 04:15 PM
  2. Replies: 5
    Last Post: 26-02-2008, 09:02 AM
  3. Changing a users password without remembering it!
    By acrobson in forum How do you do....it?
    Replies: 10
    Last Post: 23-11-2007, 09:15 AM
  4. SIMS - Passwords
    By Gatt in forum MIS Systems
    Replies: 13
    Last Post: 12-04-2007, 09:02 AM
  5. Replies: 12
    Last Post: 12-09-2005, 10:47 AM

Posting Permissions

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