RE: [U2] UV, Linux, and Active Directory
To authenticate linux against Active Directory, look into PAM (pluggable authentication modules). Just be careful - if you break PAM and don't have a backup, you then can't log in to your linux box! I can't give any advice about PAM, my only attempt to use it failed, but I know that's how you're supposed to do it. Cheers, Wol -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Norman Bauer Sent: 28 January 2009 00:25 To: u2-users@listserver.u2ug.org Subject: [U2] UV, Linux, and Active Directory I am still learning UV, it's been a long three months of learning, but I have to say that I really do like it. That being said, we run it on Windows Server 2003. We recently tried to deploy it on Server 2008 which IBM says is possible in the docs. However it will not run on Server 2008. My suggestion to my boss was to try running it on CentOS 5, when I was promptly rebuked for the idea. I was told that if we were to do that our UV accounts could not authenticate against Active Directory. And that may be somewhat tue given that our authentication module was custom written. How are you authenticating against AD on Linux? I would be very interested in knowing, because I would love to move us off of UV for Windows and run it on Linux because there is so much that I personaly know that I can do running it on Linux that it takes major hoops to pull of on Windows but is realatively trivial on Linux, like PDF printing, Python scripting, Postgresql integration, Apache tricks, etc;. Thanks, Norm --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] PDF printing, LaTeX, Ghostscript, etc.
Glen Doesn't using PrintWizard imply the use of a Windows server somewhere? That's the way of the world. If you want a quick-and-dirty stick-some-text-into-a-doc type of PDF you can get away with cross platform solutions, but for a 'real' PDF solution - one with good font handling, images, graphics, not to mention supporting the encryption algorithms, digital signatures and the like - the cost of developing an attractive commercial solution on a Linux platform is just prohibitive compared to the pay back. That's why mvPDF - and I believe PrintWizard - are both Windows based (and both Delphi driven :) ), though from what I understand of PrintWizard the architectures are very different. mvPDF for instance runs as a realtime document creation service, so it can feed back details of print metrics to the calling program as the document is being created if required. I wrote it originally for use creating specifications for a custom manufacturing system, where every document layout was potentially different and it needed a lot of control over the document whilst is was being built up - even for just simple tasks like working out whether something would fit on the page before committing it becomes an issue when using proportional fonts and markups! Of course since mvPDF runs as a service, the database itself can be on any platform, and since then I added lots of easy-use functions (spooler capture, document merging, page designer for example) - but the core font and graphics handling and the need to feed back that information remains a Windows-specific function. Yes, you can do these things on Linux but the different levels of support across the various programming languages makes the Windows route so much more attractive. Brian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] PDF printing, LaTeX, Ghostscript, etc.
For simplistic pdf printing we create html docs in unibasic on linux then use html2ps to create ps files then ghostscript to create the pdf files. Html2ps actually works quite well tho we have only ever used it for fairly simplistic pdfs for invoices etc. You can include images and also set font rules for h1's p etc, produce tables with borders, background colours etc... ghostscript can then of course append and insert other pdf's/ps files into the stream so it is all quite sophisticated - quite funny i started this mail thinking it was a very simplistic approach and it turns out you can do quite a lot with it. Rgds Symeon. -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Norman Bauer Sent: 27 January 2009 20:22 To: u2-users@listserver.u2ug.org Subject: [U2] PDF printing, LaTeX, Ghostscript, etc. Hello, Is there anyone here who implemented their own PDF printing system using LaTex, Ghostscript, or TeX, etc. We are printing on multi-part forms for all of our shipping documents and I am looking into ways to getting us off that system. 100% of our forms are printed using UniBASIC. Any and all suggestions will be looked at. Thanks, Norm --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] PDF printing, LaTeX, Ghostscript, etc. - [OT]
Having noticed that a good part of development is done in Delphi, and the cross-platform dilemma, has anyone looked into FPC-Lazarus for development around UV ? Also coming from a Delphi environment, I have so far found it relatively easy to port my Delphi applications to FPC-Lazarus, and then with very minor modifications cross-compile for Windows, Linux and Windows CE. Arnold Bosch IT Administrator Taeuber Corssen SWA (Pty) Ltd Tel +264 (0)61 293 2106 Cell +264 (0)81 124 8625 Fax +264 (0)61 293 2104 -- --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Web Services Developer Help
That would be the namespace - i have not used web services developer in anger (i just write my web services in asp.net and uniobjects.net) so i don't know if it is supposed to do that or how to get rid of it, but i may have provided a clue for you there ... Rgds Symeon. -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of iggch...@comcast.net Sent: 27 January 2009 23:56 To: u2-Users Subject: [U2] Web Services Developer Help Hi All, I am attempting to provide a web service that provides pricing info from our system.B I am able to do this pretty easily with the web services developer.B However, I am confused by something. Why do I have extra data in my tags?B For example, I have defined a field named QUOTE and I am seeing q0:QUOTE being returned by the web service.B I have looked at the wsdl and do not see that anywhere.B Is there some way that I can get rid of the q0:??? Thanks for any help you can spare, Scott --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Moving a UniVerse a/c from Unix to Windows
Hi Jeff The 'magic bullet' is usually to resize all your type 1 files to type 19 before trying the migration. Regular file names (not directory) will be truncated using a sequence number but that's not an issue - they will go across correctly. Type 1 files won't. Any SQL tables will also cause problems - you usually have to end up wiping the SICA pointer from the file header. Also a side note - when accidentally restoring type 1 files once I came across a file named CON. That's a reserved file name in Windows, but it still created the file - and objected heavily when it tried to access it again. I was stuck with it, since Windows also refused to delete it. Same for any other reserved file names - not usually a problem but it was the end of one of these mangled file paths (something like ACCOUNT.RE/CON). Also of course remember that AIX is case sensitive but Windows isn't.. So if you have equivalent items in a directory file in different case they will overwrite. Again not usual, but worth writing a ten line program just to check these across your directory files. And if you use globally cataloged programs, remember to backup and restore catdir as well... I wrote a utility that packages up an account for restoring on another platform, with options like changing file paths, restoring the indices, resizing and including/excluding Q files and remote files in the package. If you get stuck using the uvBackup route, drop me an email. Brian -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Jef Lee Sent: 27 January 2009 05:31 To: u2-users@listserver.u2ug.org Cc: Steven Tilden; John Steer; Glenn Summerfield; Glenn Cameron Subject: [U2] Moving a UniVerse a/c from Unix to Windows Does anyone have the magic bullet? We have a UniVerse account that was backed up using uvbackup on an AIX platform. We restored the account on to a Windows platform and the sky fell in. Firstly there was the 13 (14?) character naming boundary. File names record names that were longer than this boundary were broken in the Unix system into acceptable chunks. I think this protocol dates back decades (centuries?chuckle). Well so far with much fiddling and leg work we have gotten passed that. Now the indices on files are failing to maintain their integrity. This is what happens: 1. Look for a record using a keyed search and it was not found 2. Rebuild the indices using BUILD.INDEX 3. Repeat #1 and the record was found 4. Add or edit a record affecting a keyed field and the indices return to #1. What's the answer? Do we need to change the way we physically port the account? Is there a tool that will resolve the problem? Should we create a new empty account and copy all the records into it, then build the indices? All thoughts and guidance appreciated. Our UniVerse is: CT VOC RELLEVEL RELLEVEL 0001 X 0002 10.1.11 0003 PICK 0004 PICK.FORMAT 0005 10.1.11 Thanks, Jeffrey Lee Senior Analyst/Programmer IT Vision Australia Pty Ltd (ABN: 34 309 336 904) PO Box 881, Canning Bridge WA 6153 Level 3, Kirin Centre, 15 Ogilvie Road, Applecross, WA, 6153 P: (08) 9315 7000F: (08) 9315 7088 W: http://www.itvision.com.au ___ NOTICE : This e-mail and any attachments are intended for the addressee(s) only and may contain confidential or privileged material. Any unauthorised review, use, alteration, disclosure or distribution of this e-mail (including any attachments) by an unintended recipient is prohibited. If you are not the intended recipient please contact the sender as soon as possible by return e-mail and then delete both messages. ___ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] PDF printing, LaTeX, Ghostscript, etc. - [OT]
Arnold Yes, I've been impressed with FPC generally, though it depends what type of project you are trying to migrate! For straight-forward VCL forms apps it seems like a reasonable tool. However I would have to say that whilst Lazarus has come a long way, it still lags well behind other IDEs, even other free ones like SharpDevelop for C#. Maybe someone needs to port FPC to the dreaded Eclipse.. Nowadays I tend to use .net for any client projects (since they stole all the good bits of Delphi anyway grin), and stick to Delphi for my own. Brian -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Arnold Bosch Sent: 28 January 2009 10:19 To: u2-users@listserver.u2ug.org Subject: RE: [U2] PDF printing, LaTeX, Ghostscript, etc. - [OT] Having noticed that a good part of development is done in Delphi, and the cross-platform dilemma, has anyone looked into FPC-Lazarus for development around UV ? Also coming from a Delphi environment, I have so far found it relatively easy to port my Delphi applications to FPC-Lazarus, and then with very minor modifications cross-compile for Windows, Linux and Windows CE. Arnold Bosch IT Administrator Taeuber Corssen SWA (Pty) Ltd Tel +264 (0)61 293 2106 Cell +264 (0)81 124 8625 Fax +264 (0)61 293 2104 -- --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] PDF printing, LaTeX, Ghostscript, etc. - [OT]
I was not aware of Lazarus! Looks very interesting. Thanks! On Wed, 28 Jan 2009, Arnold Bosch wrote: Having noticed that a good part of development is done in Delphi, and the cross-platform dilemma, has anyone looked into FPC-Lazarus for development around UV ? Also coming from a Delphi environment, I have so far found it relatively easy to port my Delphi applications to FPC-Lazarus, and then with very minor modifications cross-compile for Windows, Linux and Windows CE. Arnold Bosch IT Administrator Taeuber Corssen SWA (Pty) Ltd Tel +264 (0)61 293 2106 Cell +264 (0)81 124 8625 Fax +264 (0)61 293 2104 -- --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ Regards, Bob Rasmussen, President, Rasmussen Software, Inc. personal e-mail: r...@anzio.com company e-mail: r...@anzio.com voice: (US) 503-624-0360 (9:00-6:00 Pacific Time) fax: (US) 503-624-0760 web: http://www.anzio.com street address: Rasmussen Software, Inc. 10240 SW Nimbus, Suite L9 Portland, OR 97223 USA --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] U2UG Board Meeting - Minutes for 01/27/09 meeting
The U2 User Group Board met via conference call at 4:00p US Eastern time on Tuesday, January 27, 2009. Complete minutes have been posted to the forum In attendance were Laura Hirsh, Brian Leach, Chuck Barouch, Baker Hughes, Martha Schraaer, Ross Morrissey and Susan Joslyn Business discussed included: OLD BUSINESS: . Better Better oBaker is picking this up . Nominations for board oAnnouncement has not gone out oPostponed for Feb 14 - voted . Logo has been approved for inclusion on new web site. . New Signature line - we had decided on it, need to vote. This will be our first email vote. Laura is going to submit the email vote on this now (Jan 27) NEW BUSINESS . Brian to get on with the web-site . Incorporate internationally? Meet with attorney next meeting . Ross brought up cross promoting Pickwiki and the U2 Wiki oIdeas were tossed around for this, Brian to take some action oEncouraging others to update website and the wiki . Susan modified the nomination letter and sent it around. With no objections, Brian will blast it. . Martha mentioned an IBM user group board meeting (all IBM user groups) to which we may send a representative. It's in NY in March - unfortunately the same week as Spectrum. . While everyone is at Spectrum, Martha is seeing if she can arrange for a board meeting dinner or something. Submitted by Susan Joslyn, board member at large serving as secretary. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] PDF printing, LaTeX, Ghostscript, etc.
Have a look at UNFORM from synergetic - we've used this extensively with UniVerse to integrate with document archiving, emailing, printing PDF viewing etc. Runs on virtually all *NIX platforms as well as Windows. Rgds Ian Stuart Web: http://www.astralfoods.com This e-mail is subject to an e-mail disclaimer. To read the e-mail disclaimer notice go to: http://www.astralfoods.com/EmailDisclaimer.htm Alternatively please contact +2712 990 8260 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Running Universe and Unidata on RHEL Without Virtualization
Has anyone run Universe and Unidata on the same instance of RHEL (not on separate virtual machines), either one-at-a-time or simultaneously? Any problems, issues, gotchas, etc. ? Thanks, Dave Dave Taylor Sysmark Information Systems, Inc. Authorized IBM Business Partner 49 Aspen Way Rolling Hills Estates, CA 90274 (O) 800-SYSMARK (800-797-6275) (F) 310-377-3550 (C) 310-561-5200 www.sysmarkinfo.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2][UD] Index for @ID (IBM documentation)
Hi everybody, In the IBM publication Developing UniBasic Applications, Version 7.1, December 2006, it says on page 4-16 (page 93 in my PDF file): Tip: Create an index for @ID to speed access to data records. Seriously? Will that honestly speed things up in a file that has eight million records? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2][UD] Index for @ID (IBM documentation)
No, you don't want to index on the ID because it is unique. That would be a very inefficient index. If you created an i-descriptor that broke the ID into several multi-valued parts, then it MAY help, but I don't think it is worth the overhead. Tom -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of jjuser ud2 Sent: Wednesday, January 28, 2009 1:06 PM To: u2-users@listserver.u2ug.org Subject: [U2][UD] Index for @ID (IBM documentation) Hi everybody, In the IBM publication Developing UniBasic Applications, Version 7.1, December 2006, it says on page 4-16 (page 93 in my PDF file): Tip: Create an index for @ID to speed access to data records. Seriously? Will that honestly speed things up in a file that has eight million records? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2][UD] Index for @ID (IBM documentation)
Okay, cool :) I thought I was going crazy when I read that and that my knowledge of indexes was more bunk than it already is. Thanks Tom!!! --JJ On Wed, Jan 28, 2009 at 1:52 PM, Tom Whitmore tewhitm...@ratex.com wrote: No, you don't want to index on the ID because it is unique. That would be a very inefficient index. If you created an i-descriptor that broke the ID into several multi-valued parts, then it MAY help, but I don't think it is worth the overhead. Tom -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of jjuser ud2 Sent: Wednesday, January 28, 2009 1:06 PM To: u2-users@listserver.u2ug.org Subject: [U2][UD] Index for @ID (IBM documentation) Hi everybody, In the IBM publication Developing UniBasic Applications, Version 7.1, December 2006, it says on page 4-16 (page 93 in my PDF file): Tip: Create an index for @ID to speed access to data records. Seriously? Will that honestly speed things up in a file that has eight million records? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2][UD] Index for @ID (IBM documentation)
It's not going to speed everything up, just certain select statements. And quite honestly, it's going to speed up certain select statements that are not really kosher. For example, if your application is full of select statements like SELECT FILE WITH @ID = ABCDEF, then you should probably re-write the statement to something like SELECT FILE ABCDEF. If you can't do that, because you don't have the source, don't have the time or whatever, then creating the index might help. I first heard of this a few years ago and yes, it does work, but I've never actually used it in a live application. It's just not a real good use of an index file. - Original Message - From: jjuser ud2 jju...@gmail.com To: u2-users@listserver.u2ug.org Sent: Wednesday, January 28, 2009 1:06 PM Subject: [U2][UD] Index for @ID (IBM documentation) Hi everybody, In the IBM publication Developing UniBasic Applications, Version 7.1, December 2006, it says on page 4-16 (page 93 in my PDF file): Tip: Create an index for @ID to speed access to data records. Seriously? Will that honestly speed things up in a file that has eight million records? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ [demime 1.01d removed an attachment of type application/pgp-signature which had a name of PGP.sig] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2][UD] Index for @ID (IBM documentation)
It's not going to speed everything up, just certain select statements. And quite honestly, it's going to speed up certain select statements that are not really kosher. For example, if your application is full of select statements like SELECT FILE WITH @ID = ABCDEF, then you should probably re-write the statement to something like SELECT FILE ABCDEF. What about this? SELECT FILE WITH @ID LIKE ABCDEF... or, in Pick style SELECT FILE EQ 'ABCDEF]' Tim Snyder Consulting I/T Specialist U2 Lab Services Information Management, IBM Software Group 717-545-6403 tsnyd...@us.ibm.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] PDF printing, LaTeX, Ghostscript, etc.
Many thoughts, decided to blog um nospamNebula-RnD.com/blog/tech/mv/2009/01/pdf1.html This is yet another good topic for PickWiki: removeNebula-RnD.com/blog/tech/mv/2009/01/wiki1.html http://www.pickwiki.com/cgi-bin/wiki.pl Tony Gravagno Nebula Research and Development TG@ remove.pleaseNebula-RnD.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] PDF printing, LaTeX, Ghostscript, etc.
Tony, good post. I agree with some of your points and others I disagree with. Your point about commercial support in particular. But I will refrain from counter point because it would take this thread off point and that is not it's purpose. Thanks for your thoughts. I had the day off from work, my daughter is ill, so I have had some time to reflect on the problem. Using LaTeX or Tex may be a bit much for some and as such I will probably forgo that option in the end anyhow. While I know a little LaTeX ...it's not all that hard I can't straddle my successors with an unnecessary burden. Neither myself nor my company has a problem spending $300 or $3000 for software if it is best for us. Best for us is does not mean Best in Class either. Money is a factor but not as much as the technology itself. Norm On Wed, Jan 28, 2009 at 3:47 PM, Tony G 1tlx6h...@sneakemail.com wrote: Many thoughts, decided to blog um nospamNebula-RnD.com/blog/tech/mv/2009/01/pdf1.html This is yet another good topic for PickWiki: removeNebula-RnD.com/blog/tech/mv/2009/01/wiki1.html http://www.pickwiki.com/cgi-bin/wiki.pl Tony Gravagno Nebula Research and Development TG@ remove.pleaseNebula-RnD.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UV, Linux, and Active Directory
-Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Norman Bauer Sent: Tuesday, January 27, 2009 4:25 PM To: u2-users@listserver.u2ug.org Subject: [U2] UV, Linux, and Active Directory [snip] How are you authenticating against AD on Linux? We're using samba/winbind for a UV server on RH ES 5.1 and authenticating against a W2K3 domain running in native mode. Here are the relevant lines from the [global] section of smb.conf: workgroup = OURDOMAIN server string = Samba Server Version %v nt acl support = no security = ADS passdb backend = tdbsam realm = OURDOMAIN.COM idmap uid = 1-2 idmap gid = 1-2 winbind use default domain = yes winbind enum users = yes winbind enum groups = yes template shell = /bin/bash allow trusted domains = no idmap domains = OURDOMAIN idmap config OURDOMAIN:backend = rid idmap config OURDOMAIN:range = 1-2 local master = no domain master = no preferred master = no dns proxy = no And this is what's in /etc/pam.d/system-auth: #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. authrequired pam_env.so authsufficientpam_unix.so nullok try_first_pass authrequisite pam_succeed_if.so uid = 500 quiet authsufficientpam_winbind.so use_first_pass authrequired pam_deny.so account required pam_unix.so broken_shadow account sufficientpam_succeed_if.so uid 500 quiet account sufficientpam_winbind.so account required pam_permit.so passwordrequisite pam_cracklib.so try_first_pass retry=3 passwordsufficientpam_unix.so md5 shadow nullok try_first_pass use_authtok passwordsufficientpam_winbind.so use_authtok passwordrequired pam_deny.so session required pam_mkhomedir.so umask=0022 skel=/etc/uv_skel session optional pam_keyinit.so revoke session required pam_limits.so session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid session required pam_unix.so Be forwarned that RedHat's own documentation on the idmap config syntax for smb.conf is incorrect. The syntax above actually works. The rid option for idmap insures that the linux gid and uid numbers always map to the same domain users and groups, even on different linux hosts. That's very important for us since we run UV on an active/passive 2-node HA cluster. When we switched nodes on the prior RH 3.0 cluster, we had to run a script to correct all the user and group assignments. The /etc/uv_skel directory that pam_mkhomedir.so clones when a new user logs in for the first time has a custom .bash_profile that executes the following environment variable assignment prior to executing uv: # Make all logins upper case LOGNAME=`echo $LOGNAME | tr [:lower:] [:upper:]` export LOGNAME Newer versions of samba/winbind force user and group names to all lower-case. This prevents a user from having multiple home directories created when they log on with different or mixed case, but would have caused a problem for us since we have lots of files and programs that expect an all uppercase user name. The linux LOGNAME variable is what UV returns for the basic @LOGNAME variable. I think that's about all we had to do. I can't remember off the top of my head the command to actually join the machine to the domain once the configs are in place, but you should have no trouble googling an example. -John --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UV, Linux, and Active Directory
-Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Norman Bauer Sent: Tuesday, January 27, 2009 4:25 PM To: u2-users@listserver.u2ug.org Subject: [U2] UV, Linux, and Active Directory [snip] How are you authenticating against AD on Linux? Oops, forgot about kerberos in my previous reply. You'll also need to modify /etc/krb5.conf: [logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log [libdefaults] default_realm =OURDOMAIN.COM dns_lookup_realm = false dns_lookup_kdc = false ticket_lifetime = 24h forwardable = yes [realms] OURDOMAIN.COM = { kdc = 111.222.33.44:88 kdc = 111.222.33.55:88 kdc = 111.222.33.66:88 admin_server = pdc.ourdomain.com:749 default_domain = ourdomain.com } [domain_realm] .ourdomain.com = OURDOMAIN.COM ourdomain.com = OURDOMAIN.COM [appdefaults] pam = { debug = false ticket_lifetime = 36000 renew_lifetime = 36000 forwardable = true krb4_convert = false } -John --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Last accessed date stamp for UniVerse files
UniVerse 9.6.1.6 on HP/UX We are analyzing our mature and extensive application to find obsolete files. I was hoping to use the array loaded by STATUS() after a file OPEN to return the date/time stamps. From the manual for STATUS() after OPEN ... Last Access date = 14 - date of last access Last Date Written = 16 - date of last mod It appears that opening the file immediately changes the last access date/time 14 and 15. That seems to defeat the purpose because the answer is always today / now. Is there a way around this? Is there another way of getting at that info without having to parse the results of a unix shell command? One hassle with that is the external date returned which is sometimes month day time or maybe month day year - for older records. I can do that but it just seems simpler to stay within UniVerse to query UniVerse entities. We get spoiled by the U2 way of managing dates/times. I have searched the IBM knowledge base but got no relevant hits. That surprises me. I am either misunderstanding something or I am totally on the wrong path. Cheers JR --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UV, Linux, and Active Directory
How are you authenticating against AD on Linux? Oops, forgot about kerberos in my previous reply. We also used Kerberos at my last gig (RHEL4 5). Kerberos is the part that actually talks to the AD controller and it does so in a secure fashion. Windows supports it out of the box I believe - http://en.wikipedia.org/wiki/Kerberos_(protocol) Very robust solution for us. The only problem we had was we only pointed to the primary AD controller in the kerberos config file and if that failed we had to edit the config file to the backup AD (comment one line, uncomment the other). The change was instant, no need to reboot/restart anything. I'm sure there is a way to do this automatically though. Regards, Adrian, Auckland, NZ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2][UD] Named pipe issue - UPDATE
Everything is working now. Thanks to MBS and IBM to assisted with the issue. Once the red tape was cleared and I could talk to MBS directly, a solution was found rather fast. I found some interesting quirks of Unidata at the same time while implementing the fix. Take the following: OSOPEN PIPE.FILE TO PIPE.HANDLE ... OSBREAD PIPE.DATA FROM PIPE.HANDLE LENGTH 10 ... This will block at the OSBREAD statement until at least 10 characters are written to the pipe. Now change it to this: OSOPEN PIPE.FILE READONLY TO PIPE.HANDLE ... OSBREAD PIPE.DATA FROM PIPE.HANDLE LENGTH 10 ... OSBREAD no longer blocks and will continually return PIPE.DATA = '' until it can read data from PIPE.HANDLE. Now, if you change OSBREAD to an OSREAD statement, you have to use OSREAD PIPE.DATA FROM PIPE.FILE Instead of OSBREAD PIPE.DATA FROM PIPE.HANDLE Which I thought was curious. Why would you need to specify the actually file location as the file handle and not the actual file handle? Regards, Dan -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Dan McGrath Sent: Wednesday, 28 January 2009 3:15 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2][UD] Named pipe issue - UPDATE Hi, Our C portion of the system appeared to use a method of opening pipes in Read/Write mode because: * Open and write request data to_server pipe * first before we tell the BASIC server. This way the * BASIC server has something to read just in case we get out of * sync by the Unix kernel putting us to sleep Checking the BASIC system, none of the OSOPEN statements specified READONLY or WRITEONLY. It appears that every so often, OSOPEN would open a pipe that should be WRITEONLY pipe as READONLY and allow the OSWRITE statement to 'succeed' without error, but not actually write the data. I'm still in the process of re-writing the old C code, because adding the READONLY/WRITEONLY statements has resulted to the system being able to process 15+ requests a second to only 0.7. I'll post an update on any findings of interest once we have it working correctly. Regards, Dan -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Wally Terhune Sent: Wednesday, 28 January 2009 2:28 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2][UD] Named pipe issue - UPDATE Dan - please confirm, but... my understanding is that the recommendation from IBM U2 support to add the READONLY or WRITEONLY keywords to your OSOPEN UniBasic statements resolved your named pipe issue. anything more to add? Thanks Wally Terhune U2 Support Architect IBM Information Management Software Tel: (303) 773-7969 T/L 656-7969 Mobile: (303) 807-6222 Email: wal...@us.ibm.com http://www.ibm.com/software/data/u2/support From: Dan McGrath dmc...@imb.com.au To: u2-users@listserver.u2ug.org Date: 01/14/2009 05:56 PM Subject:[U2][UD] Named pipe issue. Sent by:owner-u2-us...@listserver.u2ug.org Hi all, Just a quick introduction... I am a developer at a medium-sized financial institution in Australia. I've being working with Unidata for the last 2 years and have been quite surprised with the whole MultiValue system and its flexibility. Recently I've been tasked to determine the cause and find a solution to an annoy intermittent issue that has been experienced by one of our systems that links into Unidata. The part in question is a C daemon which talks to a Phantom process via Named pipes. Approximately every 15000 requests, the Phantom writes a response to the C daemon, which is never received. I've traced it down to the following lines of code and am starting to suspect a bug in Unidata (We run 7.1) The C daemon blocks at this line: Fd = open(Pipe, O_RDONLY); (Pipe is a named pipe) The associated lines in the Phantom that are running are: OSOPEN PIPE.NAME TO PIPE.HANDLE ON ERROR * snip just error handling and logging RETURN END ELSE * snip just error handling and logging RETURN END OSWRITE PIPE.DATA TO PIPE.NAME ON ERROR * snip just error handling and logging RETURN END OSCLOSE PIPE.HANDLE *snip more logging. While the C daemon is blocking at open, the Phantom apparently successfully opens the pipe and writes to it without error. None of the error logging code is touched and the logging after is. Obviously, being a named pipe, open and OSOPEN will block until they are both at that point. It appears that open does not believe the pipe has been opened by the Phantom. The requests that fail are exactly the same as the requests that succeed.
RE: [U2] PDF printing, LaTeX, Ghostscript, etc.
-Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of Norman Bauer Sent: Tuesday, January 27, 2009 12:22 PM To: u2-users@listserver.u2ug.org Subject: [U2] PDF printing, LaTeX, Ghostscript, etc. Hello, Is there anyone here who implemented their own PDF printing system using LaTex, Ghostscript, or TeX, etc. Here's my reply to a question about printing color graphics via UV from a couple of months ago. I think it may also apply to your question: There is a free, open-source tool named pdftk (pdf toolkit) that will let you do this in conjunction with Adobe Acrobat Pro. I just finished a project to do something similar last month. We're sending the output to a laser printer, but there's actually one less step involved if you just want to store the file as a pdf on disk. I haven't experimented with color, but I don't think that would be a problem. We're just printing a 1 or 2 page packing list, however. I think a multi-page report might be possible, but probably not via this exact process. This is our process: 1) Design a form in the latest version of Adobe Acrobat Pro and create form fields where your variable UV data will go. Be sure to leave the allow rich text formatting box unchecked. You'll probably also want to remove the borders. 2) Enter some character in each field that will never appear in your actual data (I used ~). You need to do this because Acrobat won't export xml definitions for empty fields, and it makes filling in the fields with data much easier. 3) Save your pdf, then export your field data and definitions as an xfdf file. The latter is an xml representation of the variable data that will go in your form. Save the files somewhere where you can access them as records in a UV type 19 file. 4) Write a program to make a copy of the xfdf file, replacing the ~ (or whatever placeholder you used) with your data. My method for doing this is to initially parse the xml field names into a dynamic array, assign a corresponding value array using LOCATE, then READSEQ each line of the original xml file replacing ~ with the associated field value. 5) EXECUTE the pdftk command to merge your new xfdf file back into your form: pdftk originalForm.pdf fill_form newData.xfdf output newForm.pdf flatten When you view the merged pdf document in Acrobat reader, you'll see your UV data inserted where the placeholder characters used to be. The pdftk software is available for download here: http://www.accesspdf.com/article.php/20041130153545577 (Windows, Debian, Suse) http://rpm.pbone.net/index.php3 (most other linux distros) If you want to go one step further and send the pdf to a printer, you can use the linux pdf2ps command to convert your pdf to a postscript file which can be sent directly to a postscript laser printer. I think pdf2ps is included in most linux distros. -John --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/