[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 854
  • Last Modified:

remote CVS server rejects a user request when requested from Windows service, accepts otherwise

Our CVS server and CVS client are on different PCs. There is a Windows service on the client that runs a batch file, and the batch exports files from the CVS server. The batch supplies CVSROOT to CVS server, and that CVSROOT is

:sspi:MyDomain\userA@CvsServer:2401:/CvsRepo.

The service runs, but CVS rejects the user, doesn't matter  userA is known to CVS and can checkout by other means (from command line). Here is the error message:

cvs [export aborted]: authorization failed: server CvsServer rejected access to /CvsRepo for user MYDOMAIN\userA.

But CVS does not reject userA if the service is logged on as another user.

Let me summarize. When service logs on as userB and tries to access CVS as userA, it works fine. But CVS barks if both service log on and CVS user are userA!

 We cannot find how these two users differ, they both are administrators.

Any idea, advice will be appreciated.
0
adesal
Asked:
adesal
  • 6
  • 6
1 Solution
 
AlexNekCommented:
I can't tell why it doesn't work but possible workaround is to create in CVS new userC and use it in query under userA or userB.
0
 
adesalAuthor Commented:
This is an interesting idea, thank you. I will try.
0
 
adesalAuthor Commented:
Sorry, AlexNek, it did not work. Thank you anyway, I really appreciate your desire ti help.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
AlexNekCommented:
Then it is something wrong with user setting /local or CVS/
Look at your post
>When service logs on as userB and tries to access CVS as userA, it works fine
If we create userC the same as userA then it must work or you miss something.
0
 
adesalAuthor Commented:
That's right, something IS wrong with user setting, and the question is what...
Both users are administrators in Windows control panel, both are in CVS administrator and CVS passwd files, both have full access. I do not know where else to look for difference.
0
 
AlexNekCommented:
Ok, then we have the next step - found something missing.
Is there any logs files on server?
How is your CVS server organized?
Could the new user login to the server /Not to CVS! / locally and remote?
Possible you miss the user at the domain level.
0
 
adesalAuthor Commented:
I do not know about the logs, if you tell me where to look, I will.

The CVS server is a separate PC with CVSNT installed, the repo is a folder in C:\.

Yes, the new user can login remotely both to the server PC and to the CVS. Even more, the service issues the CVS request on behalf of this user, and this works! But only if the service logs-on as another user. If the service logs as this user, it runs and can access the repo file (take dir) but CVS request fails. The same CVS request runs OK if the service logs on was another user.

I did not try to log to the CVS server PC locally, I will on Monday if you say so.


Thank you again.
0
 
AlexNekCommented:
>I do not know about the logs, if you tell me where to look, I will.
If your server runs under  Windows you can look into events viewer and CVSNT has possiblity to enable auditing and logs must in database.

Do you use the same network for client and server?
How do you add a user, locally or over domain controller?
0
 
adesalAuthor Commented:
Yes, the server runs under Widows. On Monday I will look in the events viewer and CVSNT.

The network is the same. I do not add users, our IT person does. I will ask him in Mon.

And thank you again
0
 
AlexNekCommented:
Don't mention it.
Pay attention, that I don't know the answer, please.
You can try to create the local user on the server.
Try find the difference between old userA and new created userC- Why under userB it is work with A but not with C?
0
 
adesalAuthor Commented:
Dear AlexNek,

Sorry, I believed I posted my comment couple of days ago.
The problem is danced around: I switched to another PC, and now it's OK.


Thank you for your help.
0
 
AlexNekCommented:
It it really strange. Thank you for answer.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now