ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 4th, 2013, 10:49 PM
new2cfrb new2cfrb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 59 new2cfrb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 27 m 24 sec
Reputation Power: 4
Change Default CF Account.

Our SBS2008 (64bit) Domain Server needs access to our networked laser printer for which there are no 64bit drivers available. So, I shared the printer from one of the domain desktops and added it to the server as the default printer. The printer is usable but because it doesn't show in the CF Admin System Information printer list, I can't use it in CFPRINT. Browsing the web suggests that I need to change the account under which the CF Service runs to something with access to network services.

"The best practice is to create a domain account specifically for the ColdFusion service and give it exactly what permissions your ColdFusion applications need and then set the ColdFusion service to run under this account in the Windows Services Panel."

Is this what I need to do?

Reply With Quote
  #2  
Old February 4th, 2013, 11:58 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Probably. If the account the CF service is running under doesn't have rights to the printer, then it definitely won't work.

Reply With Quote
  #3  
Old February 5th, 2013, 12:35 AM
new2cfrb new2cfrb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 59 new2cfrb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 27 m 24 sec
Reputation Power: 4
Currently, CF9 Services run as the default username SYSTEM (NT AUTHORITY\SYSTEM) under local system account. So, I create a user CF9 with a password - to which built-in groups should I add it and how to give it the necessary network capability?

Reply With Quote
  #4  
Old February 5th, 2013, 07:38 AM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
This is really becoming a Windows networking question, but it would need to be a domain account that has rights on the printer.

Reply With Quote
  #5  
Old February 5th, 2013, 05:35 PM
new2cfrb new2cfrb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 59 new2cfrb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 27 m 24 sec
Reputation Power: 4
I sort of agree but it's windows specifically related to ColdFusion. The CF9 installation documentation says:

"The ColdFusion services, by default, run under the highly privileged system accounts.."

and is clear on which folders it must have access to and the level of access but isn't clear on the capabilities aspect.

Reply With Quote
  #6  
Old February 5th, 2013, 06:31 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Normally, that's all CF needs in order to work. But when you start adding in authentication to other resources on a network, that's a completely different level of complexity. There's just far too many variations (Windows, OS X, *nix, Active Directory, LDAP, and on and on) for Adobe to even attempt to document them all. There are entire books written on the subject.

I mentioned that it's really a Windows networking question because the same steps would apply to set up network access to the printer for any user account. So it would be the same for the CF user account, an Administrator account, or an account for a random user named Chris Smith. If you can log onto the Windows machine with that user account and use the printer, then if CF was running under the same user account, it would also be able to access the printer.

Make sense?

Reply With Quote
  #7  
Old February 5th, 2013, 06:39 PM
new2cfrb new2cfrb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 59 new2cfrb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 27 m 24 sec
Reputation Power: 4
Kiteless, thank you. It does make sense and I'm working along those lines as we speak.

Reply With Quote
  #8  
Old February 7th, 2013, 03:11 AM
new2cfrb new2cfrb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 59 new2cfrb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 27 m 24 sec
Reputation Power: 4
Created a user "CF" and in local security policy settings, assigned it to "act as part of the operating system". I then adjusted the permissions of the CF9 folder to give user CF full capabilities. I also added CF to the Remote Desktop group so that I could log on and assign a printer share from a domain computer as the default printer. I then removed CF from the Remote Desktop group, stopped the CF9 Service, altered it to run as CF, gave it the password and started the process. Checked the run time logs - no errors. Tried my application and it ran - no obvious errors. Fired up CF Admin and checked the list of printers. Lo! It has the shared printer as the default printer. I'll give that a try tomorrow. The only odd thing is that the list of printers is a single line of garbage characters - not sure what that means although the CF user has no other printers so this may be an empty list. Overall, it looks good but tomorrow's testing should provide more info - stay tuned.

Reply With Quote
  #9  
Old February 8th, 2013, 07:04 PM
new2cfrb new2cfrb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 59 new2cfrb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 27 m 24 sec
Reputation Power: 4
The overall problem is still there but the change of user seems to have worked. I ran cfAdmin and confirmed that the default printer was the one added by user CF (\\desktop\myprinter). I then ran my CFPRINT flash program, not defining a printer. This failed and the logged message was "Printer not available". Changed the CFPRINT to specifically ask for myprinter as printer="\\desktop\myprinter" and this time it went into a hang - no messages in any logs. I then logged on as user CF and printed a document to myprinter to prove to myself that CF had access to the printer.

So, I've had CFDOCUMENT hang and now CFPRINT - there has to be some permission or capability (or bug?) causing this but how to proceed?

Reply With Quote
  #10  
Old February 8th, 2013, 11:27 PM
kiteless kiteless is offline
Moderator
Dev Shed God (5000 - 5499 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 5,091 kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level)kiteless User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 2 h 53 m 27 sec
Reputation Power: 966
Hmm...yeah then I'm at a loss. If you can log on as the same user that CF is using, and then print without having to do anything else (no typing passwords for the printer or anything), I can't think of any reason why it wouldn't work from CF.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Change Default CF Account.

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap