Change a sybase password from UNIX C/C++ program?

Sharky Forums


Results 1 to 2 of 2

Thread: Change a sybase password from UNIX C/C++ program?

  1. #1
    Hammerhead Shark jamesavery22's Avatar
    Join Date
    Nov 2000
    Location
    Northern VA, USA
    Posts
    2,711

    Change a sybase password from UNIX C/C++ program?

    I have to write a password reset utility. The ID and Password will be used by another program and my program will have to be called on a montly basis to change the password.
    The ID and Password are stored in a text file. I might have to decrypt and encrypt the file or string, that hasn't been decided yet.
    So my prog has to read the ID and password from the text file, log into a given Sybase server, change the password, then write the new PW to the text file.

    But should this be done in C? Cant a script just do it?

    Regardless is there some Unix lib that facilitates connecting to Sybase? Namely for the purpose of changing an accounts PW?

  2. #2
    Lurking all the time cranch's Avatar
    Join Date
    Oct 2000
    Location
    Minnesota
    Posts
    2,017
    We have a few scripts and applications around here that change passwords on UNIX servers by using Expect and TCL/TK. Expect actually comes with a password change utility and could be modified to fit your needs...

Posting Permissions

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