Welcome to dbForumz.com!
FAQFAQ    SearchSearch      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:   
Related Topics:
bcp into syslogins - I'm trying to bcp into a 12.5 Sybase table in tempdb the syslogins file which was bcp'd out of another server. I keep getting the following error in regards to the password column - CSLIB Message: - L0/O0/S0/N36/1/0: cs_convert: cslib user api layer:..

Syslogins problem while upgrading from ASE 12.5.3 to 15.0.2 - Hi, We're currently running ASE 12.5.3 on a 32-bit windows based intel platform and evaluating upgrading to ASE 15 on either a p-series or a linux based intel 64 bit. While setting up a test environment for the performance testing of the new..

Status-Field in master..syslogins - Hi Everybody! I'd like to know, how to find out whether a user is locked or not by the attribute status in master..syslogins. Is it as simple as it seems to be (224 = unlocked, 226 = locked) or is there any clou about it? In Sybase-Reference they're....

Connect from Unix (Perl) to MS SQL Server 2000 - Hi, We've been using Sybase::DBLib in a Perl script to connect from a Unix (Solaris) box to a Microsoft SQL Server 7.0. This has been fine but now they DB guys have upgraded the MS SQL Server from 7.0 to MS SQL Server 2000 and it now no longer works. We...

Support for Sybase Open Client 12.5 on SCO UNIX platform - Hi, I'm looking for Sybase Open Client 12.5 on SCO Unix platform.Can someone let me know where can I get the same? Thanks in advance,
   Database Forums (Home) -> Sybase All times are: Pacific Time (US & Canada)
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 ]