Re: adddriver RPC

2003-04-02 Thread Ronan Waide
On March 30, [EMAIL PROTECTED] said: Why is it that smbd tries to open the directory as a regular file? This would be the point at which I say works for me! and fail to understand what's happening on your end. Sorry! Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me.

Re: rpc client timeouts

2003-04-02 Thread Ronan Waide
On April 1, [EMAIL PROTECTED] said: Winbind calls into the rpc client, which starts fetching the list of members The rpc client sets a timeout and starts pulling the list of group members Fetching all 60k users takes longer than the timeout, the timeout fires and the rpc client returns failure

HEAD fails to build with dmalloc enabled

2003-04-01 Thread Ronan Waide
Compiling lib/adt_tree.c lib/adt_tree.c: In function `sorted_tree_destroy': lib/adt_tree.c:114: structure has no member named `_free_leap' make: *** [lib/adt_tree.o] Error 1 Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. Junk food is considered part of the vegetable

Re: HEAD fails to build with dmalloc enabled

2003-04-01 Thread Ronan Waide
On April 2, [EMAIL PROTECTED] said: On Tue, 2003-04-01 at 23:41, Ronan Waide wrote: Compiling lib/adt_tree.c lib/adt_tree.c: In function `sorted_tree_destroy': lib/adt_tree.c:114: structure has no member named `_free_leap' make: *** [lib/adt_tree.o] Error 1 It's due to dmalloc() using

Re: Users able to execute windows .exe though execute bit not set

2003-04-01 Thread Ronan Waide
On April 1, [EMAIL PROTECTED] said: I'm looking for some assistance regarding file permissions and the inability to stop the execution of a file even though the execute permission has not been set. Execute bits are a Unix concept. Windows will execute any file it can read that it understands

HEAD smbclient/smbtar problem

2003-04-01 Thread Ronan Waide
[EMAIL PROTECTED] source]# smbclient //server/print\$ -U admin%passwd -Tc Error opening local file //server/print$ - No such file or directory It's picking up the share name as the tar file name. Even specifying a filename after -Tc doesn't work. Sneaking tar.out in as the first parameter doesn't

Re: Users able to execute windows .exe though execute bit not set

2003-04-01 Thread Ronan Waide
On April 1, [EMAIL PROTECTED] said: Hmmm, I did some testing a week or so ago, and found that removing the execute permission from ACLs on the file (esp inherited ones) prevents Win2K from executing the file, although it does open the file for read first. Yep, turns out I opened my mouth

net rpc samsync patch

2003-03-31 Thread Ronan Waide
Small patch to stop net rpc samsync from copying an empty comment when syncing group data. Cheers, Waider. Index: source/utils/net_rpc_samsync.c === RCS file: /cvsroot/samba/source/utils/net_rpc_samsync.c,v retrieving revision 1.20

Re: Large RPC bug found, I think

2003-03-26 Thread Ronan Waide
On March 26, [EMAIL PROTECTED] said: What is the bug you're trying to fix ? ie. What is the behaviour that Windows shows that is not correct with the Samba code ? The bug I'm seeing is that Samba isn't getting a response to the WriteAndX request it's sending and times out. Also, I'd feel

Re: Mounting to a Windows Share

2003-03-25 Thread Ronan Waide
On March 25, [EMAIL PROTECTED] said: Can anyone tell me if this is possible and if so what actions I must take? Not presently possible. The files remain owned by the user/group that you used for the smbmount command. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me.

Large RPC bug found, I think

2003-03-25 Thread Ronan Waide
Ok, I think I've figured this out, but since I'm relatively new to Samba internals I'm not entirely clear on how to fix it, or what I might break with my fix. In a large RPC call, such as an EnumPrinters 2 call with a big buffer, the DCE/RPC stuff gets split into several SMB messages and tossed

Re: RedHat's glibc-2.3.2 and Samba - assert_uid() failures?

2003-03-24 Thread Ronan Waide
On March 24, [EMAIL PROTECTED] said: I've been debugging another massive fall-apart at my site :-( This time it appears that the installation of glibc=2.3.2-4.80.i686.rpm (required to fix a security issue) broke my installation. This update also broke wine, but as far as I know the wine

samsync secure channel

2003-03-24 Thread Ronan Waide
Hi folks, I've been digging around a problem I've had recently where an NT4 PDC is refusing to give me password hashes. Everything else from a samsync run appears ok, just that the password hashes are missing. I've tried to build an identical virtual machine, but can't figure out what's causing

another net rpc vampire aesthetics patch

2003-03-24 Thread Ronan Waide
There's a bunch of essentially duplicated code in net_rpc_samsync which should probably be merged into a single block, but anyway. The previous patch added more useful text for net rpc samdump. This does likewise for net rpc vampire. Also, I notice basic indent seems to be set to 5 rather than 4

net rpc samsync: smarter patch than the previous one

2003-03-21 Thread Ronan Waide
Thanks to pointers from Andrew Bartlett, I redid my samsync sam_account_from_delta patch a little more sanely. Now it only marks as changed things which have actually changed. This patch is against current HEAD. The STRING_CHANGED macro and general style of the additions is copied from

another samsync diff (cosmetic)

2003-03-21 Thread Ronan Waide
This makes samsync tell you what record types it's skipping, rather than just dumping out the number corresponding to the type. It also prints the database type instead of database 1, database 2, database 3. Cheers, Waider. Index: utils/net_rpc_samsync.c

Re: adddriver RPC

2003-03-19 Thread Ronan Waide
On March 19, [EMAIL PROTECTED] said: I put all the files in the print share at (\\dev\print$\w32x86). The files are from Windows XP Professional SP1. The files are, as reported by the printer test page: pscript.ntf pscript.hlp ps5ui.dll hplj5si1.ppd pscript5.dll I issued the

samsync: don't put into fields that should be null

2003-03-19 Thread Ronan Waide
This patch prevents net rpc vampire from copying empty strings into various fields; doing so can cause problems with pdb_ldap (and possibly others). Cheers, Waider. Index: source/utils/net_rpc_samsync.c === RCS file:

net rpc vampire doesn't copy interdomain trust accounts

2003-03-19 Thread Ronan Waide
Currently the code does the following checks: if the account is ACB_WSTRUST or ACB_SRVTRUST, set up to create a machine account else if it's ACB_NORMAL, set up to create a normal account else error unknown account type This currently fails for ACB_DOMTRUST. I'm not sure what the

Re: adddriver RPC

2003-03-19 Thread Ronan Waide
On March 19, [EMAIL PROTECTED] said: Firstly, you first said that it expects the files in the w32x86/win40 directories. Oh, hmm, you're right. Sorry. The files go into the w32x86/win40 directories, but not into the 2/ or 0/ subdirectories of those. My mistake. Cheers, Waider. -- [EMAIL

bug in ldap group stuff?

2003-03-18 Thread Ronan Waide
uidNumber: 1126 gidNumber: 1000 homeDirectory: /home/waider uid: waider rid: 1181 primaryGroupID: 513 displayName: Ronan Waide cn: Ronan Waide description: yadda smbHome: \\srv1\waider homeDrive: H: profilePath: \\pdc\profiles\waider logonTime: 1046707306 logoffTime: 1040143165 kickoffTime: 2147483647

Re: bug in ldap group stuff?

2003-03-18 Thread Ronan Waide
On March 18, [EMAIL PROTECTED] said: So why is Samba setting the primaryGroupID to 513? Okay, I had made two basic errors here. One is that the above is an RID, not a GID. The second was not double-checking my scripts' output. The groupadd script was spitting out some garbage before the GID,

printer name not returned correctly

2003-03-14 Thread Ronan Waide
Hi, still messing about with printers. If I create a printer like so: [TestP] printer name = Test_Printer printable = yes and then do rpcclient enumprinters 2 against the server, I get: servername:[\\server] printername:[\\server\TestP] sharename:[TestP]

rpcclient: return real WERROR values to user

2003-03-14 Thread Ronan Waide
This patch allows WERROR-based RPC calls to return their real value to the user instead of NT_STATUS_OK/NT_STATUS_UNSUCCESSFUL. Basically I've extended the cmd_set type to include a return type field and instead of the NTSTATUS (*fn)() definition there's a NTSTATUS (*ntfn)() and a WERROR (*wfn)();

failure to print (samba HEAD, cups, raw printers)

2003-03-13 Thread Ronan Waide
hi folks, again with the peculiar setup :) I've set up raw printers in cups to match the windows network, and added the correct windows drivers to feed them. One of the printers, a HP Colour LaserJet 8500 in PCL mode, fails at the testpage stage with this message: the data area passed to a

Re: failure to print (samba HEAD, cups, raw printers)

2003-03-13 Thread Ronan Waide
On March 13, [EMAIL PROTECTED] said: hi folks, again with the peculiar setup :) I've set up raw printers in cups to match the windows network, and added the correct windows drivers to feed them. One of the printers, a HP Colour LaserJet 8500 in PCL mode, fails at the testpage stage with

Re: adddriver RPC

2003-03-12 Thread Ronan Waide
On March 12, [EMAIL PROTECTED] said: adddriver Windows NT x86 HP LaserJet 5Si/5Si MX PS:pscript5.dll:hplj5si1.ppd:ps5ui.dll:pscript.hlp::pscript.ntf Don't leave unused parameters blank. use the word NULL instead. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me.

Re: Printer driver parameter deprecated - what now?

2003-03-10 Thread Ronan Waide
On March 10, [EMAIL PROTECTED] said: Uh... How can Samba users be members of NT groups? I did not know Samba supports that... How do you add Unix users to NT groups for Samba? I was just clarifying that when I said Printer Admins I wasn't referring to the NT group. Yet, my problem

segv in samba head

2003-03-10 Thread Ronan Waide
background: I had a stock redhat samba setup using security = share and sharing out three directories - [homes] and two fixed locations. pretty trivial setup. I built Samba 3 head (current as of this morning, but the problem has been happening for at least a week) and tried connecting to it from a

rpcclient typo: patch

2003-03-10 Thread Ronan Waide
when doing enumdomusers, rpcclient prints each one preceded by the word group instead of user Cheers, Waider. Index: rpcclient/cmd_samr.c === RCS file: /cvsroot/samba/source/rpcclient/cmd_samr.c,v retrieving revision 1.157 diff -u

Re: Printer driver parameter deprecated - what now?

2003-03-09 Thread Ronan Waide
On March 9, [EMAIL PROTECTED] said: Uhmm... I'm not sure. So what do I do - create the share, create empty directories like 'w32x86' and 'win40' and then issue a setdriver RPC? Well, I tried that, does not work, I get: SetPrinter call failed! result was NT_STATUS_UNSUCCESSFUL

breakage in cliconnect or thereabouts

2003-03-09 Thread Ronan Waide
Hi folks, * libsmb/smb_signing.c, libsmb/smbencrypt.c, Makefile.in, include/client.h, libsmb/cliconnect.c, libsmb/clientgen.c: Change the way we sign SMB packets, to a function pointer interface. The intention is to allow for NTLMSSP and kerberos signing of packets, but

Re: more rpcclient bughunting: PRINTER_ALL_ACCESS vs MAXIMUM_ALLOWED_ACCESS

2003-03-05 Thread Ronan Waide
On March 5, [EMAIL PROTECTED] said: I've checked in a fix. It's odd that MAXIMUM_ALLOWED_ACCESS doesn't do what it's supposed to in this case. Are you running the setdriver against a NT or Samba server? Running against Samba HEAD, but just one sec... Right, here's the summary of what I've

documentation omission: add printer command

2003-03-05 Thread Ronan Waide
The add printer command program can output a single line of text, which Samba will set as the port the new printer is connected to. From my reading of the code, if this line /isn't/ output, Samba won't reload its printer shares. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal

bug (or maybe not) in printing subsystem

2003-03-03 Thread Ronan Waide
Hi folks, tracked down a problem I mentioned last week with printing. When you use the rpcclient adddriver command as follows: adddriver Windows NT x86 name:NULL:NULL:NULL:NULL:NULL:NULL:NULL you get a NT_STATUS_UNSUCCESSFUL error, which further investigation reveals to be caused by an Access

Re: problem retrieving level 3 info for NT printer drivers

2003-02-27 Thread Ronan Waide
On February 27, [EMAIL PROTECTED] said: try again with HEAD. The Samba 2-2 client rpc code cannot handle fragmented PDU's too well. Sorry, should have mentioned. This is with HEAD. Tim Potter has been having a look at tcpdump plus a level ten debug trace of the rpcclient run. Cheers,

problem retrieving level 3 info for NT printer drivers

2003-02-26 Thread Ronan Waide
Hi folks, mentioned this briefly on samba@ about a week ago, but I've actually done some tracking on it now. I'm still digging, but this is a summary of what I've found. symptoms: doing rpcclient SERVER enumdrivers level 3 fetches information for the Windows 9x drivers, then stalls trying to

smbmount: support lfs and unicode options

2003-02-25 Thread Ronan Waide
Hi folks, this is an updated version of Urban Widmark's smbmount patch to enable lfs and unicode options to be switched on the command line. It's diff'd against current CVS HEAD. Cheers, Waider. Index: source/client/smbmount.c ===

rpcclient adddriver: core dump

2003-02-12 Thread Ronan Waide
Samba HEAD Looks like it's triggered by not closing quotes: [root@workst1 root]# rpcclient -U admin%passwd -W GROUP workst1 -d2 added interface ip=192.168.168.250 bcast=192.168.168.255 nmask=255.255.255.0 rpcclient $ adddriver Windows 4.0 HP CL 8500 - PCL:HPCPCLA.DLL:HP_LJ85.PPD:HPCPCLA1.DLL:H

one more rpclient buglet

2003-02-12 Thread Ronan Waide
Added a driver using: adddriver "Windows 4.0" "PR2:NULL:NULL:NULL:NULL:NULL:NULL:NULL" Now I get funny characters in the enumdrivers output: [root@workst1 root]# rpcclient -U user%pass -c "enumdrivers 2" workst1 [Windows 4.0] Printer Driver Info 2:

bug in findsmb

2003-01-29 Thread Ronan Waide
line #29: } else (m/-r/) { should be } elsif (m/-r/) { Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. kate says, no, there's a lot of red in heliotrope. kate says, we're talking like #993366 or so

core dump in rpcclient getdriver

2003-01-28 Thread Ronan Waide
hi folks, ran this command: rpcclient -U Administrator%password PDC -c getdriver PRINTER and got this output: [Windows 4.0] Segmentation fault (core dumped) Here's the stacktrace: #0 0x080a8abd in strlen_w (src=0x0) at lib/util_unistr.c:312 #1 0x0809bf6f in pull_ucs2 (base_ptr=0x0,

Re: [Samba] RE: Winbind on HPUX11, Totally Stuck, Please Help

2003-01-28 Thread Ronan Waide
On January 28, [EMAIL PROTECTED] said: I don't have HPUX, so I don't know what to suggest for that. I just know getent won't work without winbindd in nsswitch.conf on Linux. I think the point that was being made is that NSS support on HPUX only supports a few known types, of which one is LDAP.

Re: [Samba] sort-of fix for net rpc vampire account creation

2003-01-21 Thread Ronan Waide
Continuing the saga: Groups are not migrated by the ldap_nua backend, even if I create a posixGroup entry. After a bit of prodding, I found the latter was because Samba had set up group mappings in group_mapping.tdb, which my manually-created LDAP groups didn't agree with. Removing

inconsistent properties (Samba 3.0-HEAD)

2003-01-07 Thread Ronan Waide
Hi, under current CVS samba I've set up a BDC to test some migration stuff. If I look at it in Network Neighbourhood and view its properties, it's listed as Windows NT 4.9 Primary. If, however, I look at it in Server Manager, it's listed as Windows NT 4.9 Backup (which is what I'd expect, since

leak of some sort in smbcacls

2002-12-15 Thread Ronan Waide
Hi, just spotted this while leafing through the CVS tree (some code elided for clarity) source/utils/smbcacls.c static int cacl_dump(struct cli_state *cli, char *filename) { [-] fnum = cli_nt_create(cli, filename, CREATE_ACCESS_READ); [-] if (!sd) { printf(ERROR: secdesc query