Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Migrating syslogins from Unix to Windows - how to preserve..

 
   Database Forums (Home) -> Sybase RSS
Next:  ORA-29400: data cartridge error  
Author Message
petergates2003

External


Since: Apr 28, 2008
Posts: 1



(Msg. 1) Posted: Mon Apr 28, 2008 9:50 pm
Post subject: Migrating syslogins from Unix to Windows - how to preserve passwords
Archived from groups: comp>databases>sybase (more info?)

Is there any way of migrating master.syslogins from a Sybase Unix
(Solaris 9) to windows (Server 2003) environment ?
I have used bcp to move syslogins between sybase on Unix server - no
problem. The bcp in appears to work fine onto the windows server, but
the user login fails.
Various readings tell me that this may fails due to the fact the the
passwords are encrypted and do not migrate between different OS
platforms. Just wondering is anyone has found a way around this.
Since we are migrating a production server with many users, would
rather passwords were preserved.
Thanks in advance.
Peter

 >> Stay informed about: Migrating syslogins from Unix to Windows - how to preserve.. 
Back to top
Login to vote
SybaseNeal

External


Since: Apr 27, 2007
Posts: 9



(Msg. 2) Posted: Tue Apr 29, 2008 2:07 pm
Post subject: Re: Migrating syslogins from Unix to Windows - how to preserve [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

I think your understanding is correct. From this old technote:
http://www.sybase.com/detail?id=20269

WARNING!
Sybase recommends you restrict access of this file only to system
administrators because it contains passwords.

Using a script

1. Create a script, loginscript.txt, of user logins and passwords.
For
example:

sp_addlogin "loginame1", "password1"
go
sp_addlogin "loginame2", "password2"
go

2. Log into the new server and run the login script. For example:

isql -Usa -P -i loginscript.txt

Note: This script resets passwords to the original password. Remember
to
alert users that their passwords were reset.

 >> Stay informed about: Migrating syslogins from Unix to Windows - how to preserve.. 
Back to top
Login to vote
Nikhil

External


Since: May 05, 2008
Posts: 1



(Msg. 3) Posted: Mon May 05, 2008 12:09 pm
Post subject: Re: Migrating syslogins from Unix to Windows - how to preserve passwords [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SybaseNeal wrote:
> Hello,
>
> I think your understanding is correct. From this old technote:
> http://www.sybase.com/detail?id=20269
>
> WARNING!
> Sybase recommends you restrict access of this file only to system
> administrators because it contains passwords.
>
> Using a script
>
> 1. Create a script, loginscript.txt, of user logins and passwords.
> For
> example:
>
> sp_addlogin "loginame1", "password1"
> go
> sp_addlogin "loginame2", "password2"
> go
>
> 2. Log into the new server and run the login script. For example:
>
> isql -Usa -P -i loginscript.txt
>
> Note: This script resets passwords to the original password. Remember
> to
> alert users that their passwords were reset.

can you prepare the reverse engineered sql statements from the syslogins
table? then it will be really easy for you.


sp_configure "allow updates", 1
go

insert into syslogins ....
insert into syslogins ....

<remember, you need to prefix '0x' in the password field for the insert
statements, so that the passwords inserted are not again encrypted.


If not, no bcp nothing, if you can connect to the remote server using
'connect server' and 'disconnect', then get the syslogins table from the
remote server into the sandbox on the local dataserver.

and then its all simple that you insert into the master..syslogins as
select * from sandbox..syslogins where name <> sa or name <> probe
go

I guess, for the above, you do not need to prefix '0x' in the password
field, which apparently had worked for me.
(although for me both the dataservers happened to be on Unix, no Windows)


Guess, you could give a try?


Regards,
Nikhil
 >> Stay informed about: Migrating syslogins from Unix to Windows - how to preserve.. 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> Sybase All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]