From lucy a t orion.duhs.duke.edu Wed Apr 26 19:44:38 2006 From: lucy a t orion.duhs.duke.edu (Lucy Upchurch) Date: Wed, 26 Apr 2006 14:44:38 -0400 Subject: [Webcalendar] webcal conversion Message-ID: <60e40e2b146c924a75b033834516a1e1 a t orion.duhs.duke.edu> Hi, I am moving webcal from a PC running XP onto a linux box. I believe that version 2.6 is running on the PC and I have installed version 2.9.3 on my linux box. Everything is okay except that when I copied my spool dir from the PC to my linux box, the linux box is not accepting my passwd when I try to log into webcal. I changed the owner:group to apache on the passwd file. I was able to create a new user, etc with no problems. Do the users and passwd and log file reside in spool on linux? Is this defined in any of the .pm or .pl scripts? How do I convert my users and their calendars to my linux box? Thanks. Lucy Upchurch DUMC From r.janssen a t uw.nl Wed Apr 26 20:11:10 2006 From: r.janssen a t uw.nl (Rob Janssen) Date: Wed, 26 Apr 2006 21:11:10 +0200 Subject: [Webcalendar] webcal conversion In-Reply-To: <60e40e2b146c924a75b033834516a1e1 a t orion.duhs.duke.edu> References: <60e40e2b146c924a75b033834516a1e1 a t orion.duhs.duke.edu> Message-ID: <444FC5CE.8000703 a t uw.nl> Lucy, I think no conversion should be required (but I am not sure as I never did such a migration). Yes, the passwd and log files should be in the spool directory. However, what may be the problem is that Linux uses case-sensitive names for files, and Windows doesn't. So, when you type the username make sure that you type it in the same case as it appears in the passwd file and the spool directory. When you can create users you may consider to create a user, make it the administrator (in the config file) and re-set the passwords for other users. Of course do this only when no other solutions appear to work, or when there are only a few calendars.... Rob Lucy Upchurch schreef: > Hi, > > I am moving webcal from a PC running XP onto a linux box. I believe > that version 2.6 is running on the PC and I have installed version > 2.9.3 on my linux box. Everything is okay except that when I copied > my spool dir from the PC to my linux box, the linux box is not > accepting my passwd when I try to log into webcal. I changed the > owner:group to apache on the passwd file. I was able to create a new > user, etc with no problems. > > Do the users and passwd and log file reside in spool on linux? Is > this defined in any of the .pm or .pl scripts? > > How do I convert my users and their calendars to my linux box? > Thanks. > > Lucy Upchurch > DUMC > > _______________________________________________ > Webcalendar mailing list > Webcalendar a t math.utexas.edu > http://www.math.utexas.edu/mailman/listinfo/webcalendar -- Rob Janssen Netwerkbeheer UW Reïntegratie T 030 - 2 391 500 F 030 - 2 391 504 http://www.uw.nl/ From r.janssen a t uw.nl Wed Apr 26 20:35:17 2006 From: r.janssen a t uw.nl (Rob Janssen) Date: Wed, 26 Apr 2006 21:35:17 +0200 Subject: [Webcalendar] webcal conversion In-Reply-To: <7daef7e0db50abcaf722b95dc277343e a t orion.duhs.duke.edu> References: <60e40e2b146c924a75b033834516a1e1 a t orion.duhs.duke.edu> <444FC5CE.8000703 a t uw.nl> <7daef7e0db50abcaf722b95dc277343e a t orion.duhs.duke.edu> Message-ID: <444FCB75.7030602 a t uw.nl> Lucy Upchurch schreef: > Thanks for the prompt reply. I think I found the problem. In my passwd > file that I copied, none of the passwords are encrypted. They are all > plain text. However, the test one I created has an encrypted passwd. I > suppose there is something about setting encryption somewhere that is > set or in passwd. > > Is there any admin documentation for webcal? > > Lucy Ok, I checked the Perl code and indeed the passwords are stored in plaintext when the OS is Windows. Probably the crypt() routine is not available in Windows... In Linux the passwords are always crypted. There is some logic that chooses between an old and a new method of encryption, but no plaintext. It would be possible to write a perl program by cutting some functions out of webcalAuth.pm that converts the passwd file. Maybe Maorong already has done this, let's wait for any reply... When there are only a few users, it seems easier to manually reset all their passwords while logged in as an administrator. (using the plaintext passwd file as a guide) The entries in the file should then appear crypted. Rob From mzou a t math.utexas.edu Thu Apr 27 04:05:00 2006 From: mzou a t math.utexas.edu (Maorong Zou) Date: Wed, 26 Apr 2006 22:05:00 -0500 Subject: [Webcalendar] webcal conversion In-Reply-To: <444FCB75.7030602 a t uw.nl> References: <60e40e2b146c924a75b033834516a1e1 a t orion.duhs.duke.edu> <444FC5CE.8000703 a t uw.nl> <7daef7e0db50abcaf722b95dc277343e a t orion.duhs.duke.edu> <444FCB75.7030602 a t uw.nl> Message-ID: <17488.13532.538806.272367 a t linux183.ma.utexas.edu> Rob Janssen writes: > > It would be possible to write a perl program by cutting some functions > out of webcalAuth.pm that converts the passwd file. > Maybe Maorong already has done this, let's wait for any reply... > There is no such utility that convert password files between win and unix installations. However, if you know a little perl, it is not difficult to write one. For example, the following short program will do. Maorong #==== cut and save as a.pl #!/usr/bin/perl # usage: a.pl < win_password_file > unix_password_file while(<>){ ($n,$p,$r)=split(/:/,$_,3); $q=$p?crypt($p,$n):""; print "$n:$q\n"; } #===== cut