Re: Anyone using Clearcase on Windows with Cygwin (esp over SSH)?

2007-05-15 Thread Shankar Unni

Corinna Vinschen wrote:


1.5.24 only asks the PDC and fails if it's unable to connect to it.
Try a developer snapshot.  The function to contact the logon server
has been changed in CVS HEAD to use the newer DsGetDcNameA function
instead of the old NetGetDCName.  Only on NT4 Cygwin falls back to
NetGetDCName/NetGetAnyDCName.


Great - I'll try that ASAP.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Anyone using Clearcase on Windows with Cygwin (esp over SSH)?

2007-05-14 Thread Corinna Vinschen
On May  2 13:03, Shankar Unni wrote:
 Shankar Unni wrote:
 
 I finally got a bit of a clue during a recent login. It seems that 
 *occasionally*, my machine is able to contact the PDC when logging in 
 via sshd, so that LOGONSERVER is \\pdcname, rather than 
 \\localmachinename (using cached credentials).
 
 Further confirmation: the terminal server logins were correctly using 
 the local backup domain controller, which is why they work perfectly.
 
 So it does indeed seem as if I'm running into 
 http://cygwin.com/ml/cygwin/2006-07/msg00129.html .
 
 The main thing I need at this point is to know if there's a workaround 
 for this issue (e.g. some way to force sshd to always use a specific BDC 
 for login processing, etc..).

1.5.24 only asks the PDC and fails if it's unable to connect to it.
Try a developer snapshot.  The function to contact the logon server
has been changed in CVS HEAD to use the newer DsGetDcNameA function
instead of the old NetGetDCName.  Only on NT4 Cygwin falls back to
NetGetDCName/NetGetAnyDCName.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Anyone using Clearcase on Windows with Cygwin (esp over SSH)?

2007-05-02 Thread Shankar Unni
If anyone has experience with using Clearcase dynamic views on Windows 
over an ssh session, I'd like to get some tips from you, or exchange info.


As I've indicated in earlier messages (e.g. 
http://cygwin.com/ml/cygwin/2007-05/msg00025.html, etc.), I'm running 
into weird permissions problems when I ssh into a Windows 2003 box 
(using the latest cygwin 1.5.24 and the latest openssh).


So far, I have:

* Reinstalled the sshd service using ssh-host-config specifying 
CYGWIN=ntsec smbntsec


  - that fixed one set of problems, but the list of groups shown by 
id is still incomplete, which means there are other permissions issues..


* Added my domain login name to the domain groups in /etc/group 
explicitly (to work around the problem mentioned in 
http://cygwin.com/ml/cygwin/2006-07/msg00129.html).


  - that fixed even more problems. I can now perform certain operations 
on my dynamic views (like cleartool edcs / setcs, etc.)


However, my latest problem is that I can see all _directories_ 
perfectly, but any attempt to access a file (or even stat() them) gets a 
Windows Error 1 (ERROR_INVALID_FUNCTION) which Cygwin maps to errno 54, 
which displays as Invalid request code.  (Strace shows 
fhandler_base::open() being called with the full view-extended path, and 
failing with Windows error = 1, which is mapped to errno 54):


   97  264405 [main] cat 3592 fhandler_base::open: 
(m:\builder_ccredwood_view\entfraud\csi\xtms.jpx, 0x11)
218824  483229 [main] cat 3592 seterrno_from_win_error: 
/ext/build/netrel/src/cygwin-1.5.24-2/winsup/cygwin/fhandler.cc:687 
windows error 1
  128  483357 [main] cat 3592 geterrno_from_win_error: windows error 1 
== errno 54


The bizarre thing, though, is that if I log in to the same machine as 
the same user using, say, Terminal Services (Remote Desktop), and access 
this file:


 - it shows the file properly
 - after that, even the above ssh session can now magically read the 
file properly!


But only that file - it will still croak on other files..  And as soon 
as I log out and log back in again, I can't read that file, again..


UPDATE:

I finally got a bit of a clue during a recent login. It seems that 
*occasionally*, my machine is able to contact the PDC when logging in 
via sshd, so that LOGONSERVER is \\pdcname, rather than 
\\localmachinename (using cached credentials).


When it's actually connected to the PDC, then all the Clearcase 
operations work great..


So now, what I have to try is:

* See if there's a way to force the box to talk to the PDC when I'm 
logging in (there's a very poor network connection in between).


AND/OR

* Understand why a session logged in using cached credentials via ssh is 
causing the MVFS such heartburn.


I would appreciate any ideas for debugging this from anyone..

Thanks,
--
Shankar Unni.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Anyone using Clearcase on Windows with Cygwin (esp over SSH)?

2007-05-02 Thread Shankar Unni

Shankar Unni wrote:

I finally got a bit of a clue during a recent login. It seems that 
*occasionally*, my machine is able to contact the PDC when logging in 
via sshd, so that LOGONSERVER is \\pdcname, rather than 
\\localmachinename (using cached credentials).


Further confirmation: the terminal server logins were correctly using 
the local backup domain controller, which is why they work perfectly.


So it does indeed seem as if I'm running into 
http://cygwin.com/ml/cygwin/2006-07/msg00129.html .


The main thing I need at this point is to know if there's a workaround 
for this issue (e.g. some way to force sshd to always use a specific BDC 
for login processing, etc..).



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/