Author Topic: Microsoft guys, programmers - help needed.  (Read 1214 times)

0 Members and 1 Guest are viewing this topic.

Ecrofirt

  • Heavy Metal Jesus
  • Senior Member
Microsoft guys, programmers - help needed.
« on: January 24, 2008, 04:57:34 AM »
OK, so I've been assigned the task of getting the shitty shitty Peachtree Accounting 2007 software working on our campus computers. I'm getting nowhere with it.

Let me explain the problem:
Peachtree 2007 is supposed to be used for a class on campus starting, oh, next week or so. The 2007 academic software is supposed to work in a network environment without any issues, but we've run into a major issue with it pretty much instantly.

As I said, Peachtree is an accounting program. think Quickbooks for mouthbreathers, and you've got Peachtree. Anyhow, when you open it for the first time, it wants you to create your company so you can actually do your accounting stuff. All would be well and good there, except the software tries to do some sort of encryption with the company files that fails.

Why does the encryption fail? It fails because all of the student accounts on our domain use mandatory user profiles. As I understand it the failure occurs because the profile is temporary and various Cryptography things are not supported with temporary (i.e. mandatory) user profiles.

Anyhow, this isn't a Peachtree support forum, and I know exactly WHY the error is occuring (Shitty Peachtree is shitty, and lies about working.). The problem is, I have to come up with a work-around for this very quickly.

I had an idea which partially works, but I can't fully implement it:
We created a new user on the domain called 'Peachtree', and we don't have it using a mandatory profile. We then open Peachtree as the 'Peachtree' user (via either the runas command, or via C# wizardry), and the program is able to function without issues. As I said, this is only a partial fix, though.
  • The network printers across campus are mapped at logon, and thus are not mapped for the 'Peachtree' user that's using Peachtree.
  • The real student who's sitting at the PC is not be able to see his/her network Home drive since the 'Peachtree' user is using Peachtree.

I tried amending our script/code to map both the printers and the network home drive either before or after the 'Peachtree' user opens Peachtree, but it doesn't work. My guess is that it doesn't work because each operation (i.e. mapping the drive, mapping the printer, opening the program) creates a separate, fully encapsulated, instance of the 'Peachtree' user, and none of the instances can see each other. Thus, mapping the printers and drives does nothing to the instance of 'Peachtree' that's using the software.

So, I'm hoping someone might have some idea that would work. I don't have the authorization to make wholesale changes to our network, so I can't take off the mandatory profile. My boss is also trying to keep in line with some government regulations, so he doesn't want everyone logging in as a generic local/network user account. This leaves me with no idea of where to go from here, and the Peachtree people aren't helping us at all since we're using the Academic software.

I have a feeling there's really nothing feasible that I can do, but I'm hoping one of you fellas/ladies that's clearly smarter than me might have a doable suggestion.

The closest I've come to anything is telling my boss they have to log in as a generic user, and then I'll just have them type their Windows username/password into a fake Peachtree login box that will then map printers and network drive and open the software.

This whole thing is a big fucking mess.
« Last Edit: January 24, 2008, 05:01:42 AM by Ecrofirt »
8=D

Van Cruncheon

  • live mas or die trying
  • Banned
Re: Microsoft guys, programmers - help needed.
« Reply #1 on: January 24, 2008, 12:54:47 PM »
can't you write some impersonation wrapper and have it launch the peachtree app as the peachtree user? the account impersonation functionality is definitely in the .net framework under system.security.principal.

edit: here's a sample, although it uses some p/invoke hijinks which my may baffle the c# novice.

http://born2code.net/?page_id=45

duc

Ecrofirt

  • Heavy Metal Jesus
  • Senior Member
Re: Microsoft guys, programmers - help needed.
« Reply #2 on: January 24, 2008, 02:35:43 PM »
can't you write some impersonation wrapper and have it launch the peachtree app as the peachtree user? the account impersonation functionality is definitely in the .net framework under system.security.principal.

edit: here's a sample, although it uses some p/invoke hijinks which my may baffle the c# novice.

http://born2code.net/?page_id=45



I've looked over that fairly quickly, rather than research it a bit more, how much will this differ from starting a Process with some ProcessStartInfo that says to run the process as another user? That's how I've been going about things thus far.
8=D

Van Cruncheon

  • live mas or die trying
  • Banned
Re: Microsoft guys, programmers - help needed.
« Reply #3 on: January 24, 2008, 02:48:11 PM »
it goes through the windows impersonation context, which plays nicer with group policies, as i understand it.
duc

Ecrofirt

  • Heavy Metal Jesus
  • Senior Member
Re: Microsoft guys, programmers - help needed.
« Reply #4 on: January 24, 2008, 02:51:34 PM »
it goes through the windows impersonation context, which plays nicer with group policies, as i understand it.

Cool. I'm reading up on impersonation and the like now. I've never seen any of this stuff before.

I wonder if it'll end up being a futile effort, though. I guess we'll see!
8=D

Howard Alan Treesong

  • キング・メタル・ドラゴン
  • Icon
Re: Microsoft guys, programmers - help needed.
« Reply #5 on: January 24, 2008, 02:51:46 PM »
is an impersonation wrapper like when I make my girlfriend wear the schoolgirl outfit

if so, it probably won't work for more than 5 minutes before you're back to being fucked
乱学者

Van Cruncheon

  • live mas or die trying
  • Banned
Re: Microsoft guys, programmers - help needed.
« Reply #6 on: January 24, 2008, 02:59:33 PM »
it goes through the windows impersonation context, which plays nicer with group policies, as i understand it.

Cool. I'm reading up on impersonation and the like now. I've never seen any of this stuff before.

I wonder if it'll end up being a futile effort, though. I guess we'll see!

could be. :/ ironically, i'm a far better un*x admin than i am a windows server admin. i know enough to get code to work well and to debug very specific issues, but put me on a heterogeneous network and the tears will flow
duc

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: Microsoft guys, programmers - help needed.
« Reply #7 on: January 24, 2008, 03:12:59 PM »
it goes through the windows impersonation context, which plays nicer with group policies, as i understand it.

Cool. I'm reading up on impersonation and the like now. I've never seen any of this stuff before.

I wonder if it'll end up being a futile effort, though. I guess we'll see!

could be. :/ ironically, i'm a far better un*x admin than i am a windows server admin. i know enough to get code to work well and to debug very specific issues, but put me on a heterogeneous network and the tears will flow
My first usage of VI was the other day.

Here's how it went:

What the fuck? I didn't mean to have 760 lines of just A, B, C, D. Insert mode? WTF

*cries*
UK

Van Cruncheon

  • live mas or die trying
  • Banned
Re: Microsoft guys, programmers - help needed.
« Reply #8 on: January 24, 2008, 03:23:39 PM »
mmm, vi. i am as a vi god. :bow me :bow
duc

T234

  • Canadian Legal Expert and Hillballer
  • Senior Member
Re: Microsoft guys, programmers - help needed.
« Reply #9 on: January 24, 2008, 05:16:00 PM »
I need to learn vi. Any tips fer a noob? Also, Man you cannot get two more opposite programming languages to start out with. VB is pretty B startin out, the Perl book has flown right the fuck over mah head. We're using The Camel Book as the textbook.
UK

Van Cruncheon

  • live mas or die trying
  • Banned
Re: Microsoft guys, programmers - help needed.
« Reply #10 on: January 24, 2008, 05:19:57 PM »
vi, like the camel book's take on perl, is all about the regular expressions, both of which derive from sed. read up on the sed/awk regex model!
duc

Howard Alan Treesong

  • キング・メタル・ドラゴン
  • Icon
Re: Microsoft guys, programmers - help needed.
« Reply #11 on: January 24, 2008, 06:06:54 PM »
:bow regex :bow
乱学者

recursivelyenumerable

  • you might think that; I couldn't possibly comment
  • Senior Member
Re: Microsoft guys, programmers - help needed.
« Reply #12 on: January 24, 2008, 08:30:12 PM »
I use emacs in vi emulation mode  :dur  8)
QED