Re: [Samba] Sorry, Gerald (Jerry) Carter now please help me

2004-09-07 Thread Christopher Odenbach
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hi,

(sorry, I am not Jerry)

In the project I am planning to achieve server independency
 , means ---Consider  an organization is having 2 kinds of server SAMBA and
 NFS, then if a request is made from a Samba client and required file is on
 NFS server then the request should get satisfied. I will be planning to
 convert a SAMBA request into a NFS request that is finally be given to the
 NFS server. The client does not care about the thing that to which server
 it has made request.

  Also, I have to make the similar thing in case of NFS
 client and SAMBA server. In this way it will help the system administrator
 to achieve a server independency.

 Can anybody please rate this idea as 
 very simple
 simple
 good to do a project
  very difficult
  best one
  don't do such project.

Sounds quite simple to me: Install samba on an NFS client and you have the 
first part ready. Then take a linux box, smbmount an smb share and reexport 
it via NFS, and you are ready.

BUT: You will get into trouble with

- - file locking
- - authentication (there is _no_ authentication with NFS)
- - permissions
- - speed
...

I even don't think that such a setup would be useful for a system 
administrator, so better look for something else.

Just my opinion (and I am not Gerald Carter),

Christopher

- -- 
==
Dipl.-Ing. Christopher Odenbach
Zentrum IT-Dienste
N5.110
[EMAIL PROTECTED]
Tel.: +49 5251 60 5315
==
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBPVG+hxiCJKeLY0IRAg0OAKCzYusjLy43P09oaFAYbUINuyVIUACeOsRT
dTWvEHljlDs65bBrwg/Txk0=
=cIIT
-END PGP SIGNATURE-

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] CUPS printing postscript code not my document

2004-09-07 Thread Olaf Eichhorn, Vermessungsbüro Pfeifer
Hi Neil,
try the following in Your smb.conf [GLOBAL]
# This option tells cups that the data has already been rasterized
cups options = raw
This is an new option in samba 3.0.6
It tells CUPS to leave Your printdata untouched.
I hope it helps.
You can find an very useful documentation for Samba and printing on
http://samba.vernstok.nl
I prefer the PDF-version
best regards
Olaf
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Upgrade from Samba 3.0.2 to 3.0.6 smbclient -k fails

2004-09-07 Thread Christoph Scheeder
Hi,
upgrade kerberos to a version  1.3.3
Christoph
Griffin, Patrick J schrieb:
Hello!
I hope someone can point me in the correct direction.
I'm trying to upgrade my Samba installation from 3.0.2 to 3.0.6 and, at
least for me, the upgrade introduces a problem with Kerberos.
3.0.2   smbclient //server/share -k   works
3.0.6   smbclient //server/share -k   fails
I have updated my smb.conf to include 'use kerberos keytab = yes' and I have
updated my /etc/krb5.conf from blank to:
[libdefaults]
   default_keytab_name = FILE:/etc/krb5.keytab

When smbclient fails I see the following in my log files:
[2004/09/06 01:50:08, 1] smbd/sesssetup.c:reply_spnego_kerberos(173)
  Failed to verify incoming ticket!
I'm running:
RedHat ES 3.0 with:
kernel-smp-2.4.21-20.EL
krb5-libs-1.2.7-28
Please, someone, give me the clue I need to solve this!
Thanks,
...Pat
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] solaris + vxfs + quota

2004-09-07 Thread Hervé Couaillet
Hello,

can we use the quota with samba-3.0.6 on solaris 8.0 with VXFS Filesystem ?

Thanks in advance

Hervé Couaillet
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] netbios aliases ?

2004-09-07 Thread ip.guy
wow, not a single taker on this one !!!

hi all
I have a samba server acting as a domain member server providing 
file/print services to our SME

As i want to provide users with a list of available printers for 
installation, i need to give them a win32 shortcut to \\samba-server\ 
so they can see the available printers and install as required BUT... 
doing so will also show them all of the available shares... not a major 
issue but would rather just list the printers (i am using browseable = 
no to hide all shares) but am now running into another problem.

I'm using a web interface to smbclient to allow staff to access the file 
server from home.

Making all shares inviable effectively makes the use of the web 
smbclient pointless

Is it possible to use a netbiios alias and force the printers to list 
under the alias ?

Any other suggestion welcome


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] netbios aliases ?

2004-09-07 Thread Simon Hobson
At 5:37 pm +1000 7/9/04, ip.guy wrote:
wow, not a single taker on this one !!!

hi all
I have a samba server acting as a domain member server providing 
file/print services to our SME

As i want to provide users with a list of available printers for 
installation, i need to give them a win32 shortcut to 
\\samba-server\ so they can see the available printers and 
install as required BUT... doing so will also show them all of the 
available shares... not a major issue but would rather just list 
the printers (i am using browseable = no to hide all shares) but 
am now running into another problem.

I'm using a web interface to smbclient to allow staff to access the 
file server from home.

Making all shares inviable effectively makes the use of the web 
smbclient pointless

Is it possible to use a netbiios alias and force the printers to 
list under the alias ?

Any other suggestion welcome
Look up the %L substitution and include files.
You can do something along these lines :
netbios name = fileserver
netbios aliases = printers
include = /etc/samba/smb.conf.%L
Your main smb.conf file contains ONLY the global section (and 
anything you specifically want to appear on each virtual server). You 
then have additional files in the form smb.conf.servername which 
contain the relevant shares for each server. You might have to 
experiment a bit with the case of the servername and include files, I 
can't remember whether takes the servername as written, or if any 
case conversion happens.

What happens is that when a client connects to any of the servers, 
Samba loads the smb.conf file as it starts the server process to 
handle the client. %L is substituted with the server name that the 
client connected to, and so the include statement will include the 
relevant file for the servername.

Downsides :
1) You can no longer administer the server with SWAT or Webmin. Later 
versions (of Webmin IIRC) warn you, earlier ones just write out a new 
smb.conf and leave you wondering where the f*** your shares just went 
- guess how I found out about that :-(

2) It doesn't work with pure IP - only with Netbios ? Hopefully 
someone else can fill in that one, I can only remember bits that have 
been on this list. I think it was something to do with the client not 
giving a server name when it connects directly with IP (on port 445 ?)

3) All the virtual servers have the same server comment.
4) I don't know if it's still recommended practice, or if it's 
something that's likely to stop working in the future.

Simon
--
Simon Hobson MA MIEE, Technology Specialist
Colony Gift Corporation Limited
Lindal in Furness, Ulverston, Cumbria, LA12 0LD
Tel 01229 461100, Fax 01229 461101
Registered in England No. 1499611
Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] file context menu takes for ever with 3.0.6, bothsernetand suse

2004-09-07 Thread Dragan Krnic
 I've tested SerNet's ans SuSE's versions of Samba 3.0.6
 on a test member server. Joining domain, attaching share
 all works but if I right-click a file, the context menu
 takes for ever to pop up. If I select Properties, it
 takes even longer until the dialog box appears.
 
 Are these XP clients?
 
 I should have mentioned it.
 No, the problem affects both XP and w2k
  
 Try setting large readwrite = no (be sure to restart the client on a new
 smbd or you won't know for sure) and see if that changes the behaviour.
 I have several systems with the same exact issues you describe. Changing
 that value helped me...I'm hoping Jeremy can help me understand why in an
 email I sent to samba-technical.
 
 Thanks, Bill. I'll try both your suggestion and Jeremy's sendfile hint
 first thing in the morning.

Setting large readwrite = no has a dramatic impact but not the
one desired. After mounting the share the icon was that of a dir
instead of that of a shared drive. Clicking on it turned the cursor
to an hourglass for a long time and after about 30s there was the
correct icon for shared drive but also a pop-up error message:

   X:\ cannot be accessed.
The network name is no more available.

On the other hand setting use sendfile = no solved the problem
entirely.

Thank you Jeremy
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] SAmba internal error.

2004-09-07 Thread Lapin(c)

Hi team,

I working for weeks now on a samba3.0.4/OpenLDAP2.1.3 on a HP-UX11.00 configured
as a PDC. I dont have any clue why this morning, trying to request this
configuration with a 'net user' I got a could protocol negociation failed.
Looking in log files, I found out a PANIC: Internal Error linked to secret.tdb
file. The log file is as an attachment.

If any of you has some beginning of response...

Thanks,

Fred
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

[Samba] XP SP2 firewall does not activate domain profile

2004-09-07 Thread Gunther Schlegel
Hi,

MS released the wfnt.adm policy template file to create NT4 system
policies that configure the firewall.

The XP SP2 firewall offers two profiles:
- Domain profile is used when the computer is connected to a managed
network
- Standard profile is used otherwise

In our totally Samba 3.0.6 based setup the XP SP2 firewall does not
recognize to be on the managed network, instead it always activates the
standard profile.

According to MS Documentation (CableGuy column May 2004) the firewall
decides based on the DNS name of the last domain it received a group
policy from. This name is compared to the DNS name of the network
connection and the domain profile of the firewall should be activated if
both values match.

As NT4 / Samba3 does not support Group Policies there is probably no
Last group policy DNS domain name. ( At least gpresult gives not
applicable ). 

However there must be some way for the firewall to decide -- otherwise
the release of a policy file by MS would be quiet useless.

Does anyone use wfnt.adm with success?

regards, Gunther

-- 
Gunther SchlegelRiege Software International GmbH
Manager System AdministrationMollsfeld 10
 40670 Meerbusch, Germany
Email: [EMAIL PROTECTED] Phone: +49-2159-9148-0
  Fax:   +49-2159-9148-11
-


signature.asc
Description: This is a digitally signed message part
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] samba 3 / AD / krb5_cc_get_principal failed

2004-09-07 Thread Olaf Zaplinski
Jacky Kim wrote:
Update your kerberos5 to version 1.3.* .	
Well, it is already that version:
morpheus:~# dpkg -l|grep -i kerb
ii  krb5-config1.6Configuration files for Kerberos Version 5
ii  libkadm55  1.3.4-3MIT Kerberos administration runtime librarie
ii  libkrb53   1.3.4-3MIT Kerberos runtime libraries
Or is another package missing? Perhaps the package dependencies are not set 
correctly.

Regards
Olaf
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Re: Network LookUp

2004-09-07 Thread Bruno Guerreiro
Hi Sergio.
(I understand is not really a samba answer, but may help solve your
problem.)
There's a option in squid.conf to log the machine name instead of the IP.

#  TAG: log_fqdnon|off
#   Turn this on if you wish to log fully qualified domain names
#   in the access.log. To do this Squid does a DNS lookup of all
#   IP's connecting to it. This can (in some situations) increase
#   latency, which makes your cache seem slower for interactive
#   browsing.
#
#Default:
# log_fqdn off

Bruno Guerreiro

-Original Message-
From: Kristyan Osborne [mailto:[EMAIL PROTECTED]
Sent: Monday, September 06, 2004 10:24 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [Samba] Re: Network LookUp


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kristyan, sorry, i must be explain the situation.
I have squid and samba in the some server. With squid log, i have the
list of machines contected to the server. With this ip, i want to do a
lookup to give the machine name. I build my program in C++, with him i
audit the squid log to make the ip, but i don't have idea about the
samba api and libsmbclient api to give the samba name from ip.
Thank's again.

I forgot to mention if you want to do the lookup when the client is on you
can use:

smbstatus -S | grep ipaddy

Cheers

- -
Kristyan Osborne - IT Technician
Longhill High School
01273 391672 / 304086

- --
Computers are like airconditioners: They stop working properly if you open
windows.
Win95:   A 32-bit patch for a 16-bit GUI shell running on top of an
 8-bit operating system written for a 4-bit processor by a
 2-bit company who cannot stand 1 bit of competition.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBPNWLqrr+KdRYU5gRAgqYAJ0TEW53x0JWtyruTWVgXeu5dGhgjwCgunNU
c2gqBcrCphKpscqtfOWEIcQ=
=CZop
-END PGP SIGNATURE-

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] [HELP] understanding winbind smb.conf parameters

2004-09-07 Thread Michael Gasch
hi list,
may be it's a stupid question, because it's written in smb.conf but i 
don't understand the description of the following parameters

** winbind enum users (G)
  On large installations using winbindd(8) it may be 
necessary to suppress the enumeration  of  users  through
  the  setpwent(),getpwent()  andendpwent()  group  of 
system calls. If the winbind enum users parameter isno,
  calls to the getpwent system call will not return any data.


  Warning
  Turning off user enumeration may cause some programs to 
behave oddly. For example, the finger program relies
  on having access to the full user list when searching for 
matching usernames.

** winbind trusted domains only (G)
  This  parameter is designed to allow Samba servers that 
are members of a Samba controlled domain to use UNIX
  accounts distributed via NIS, rsync, or LDAP as the uid's 
for winbindd users in the  hosts  primary  domain.
  Therefore, the user DOMAIN\user1 would be mapped to the 
account user1 in /etc/passwd instead of allocating a
  new uid for him or her.

  Default: winbind trusted domains only = no
** winbind use default domain (G)
  This parameter specifies whether thewinbindd(8) daemon 
should operate on users without domain  component  in
  their username. Users without a domain component are 
treated as is part of the winbindd server's own domain.
  While this does not benifit Windows users, it makes SSH, 
FTP and e-mail function in a way much closer to the
  way they would in a native unix system.

  Default: winbind use default domain = no
  Example: winbind use default domain = yes
i mean, i'm able to translate it but i don't understand it :-/
have you examples or could you be so kind to enlight me?
my setup
1x samba PDC (with ldap)
1x samba BDC (with ldap)
1x samba DM (with winbind, getting users/groups from ldap via nss_ldap)
thank you very much !
--
 Matrix - more than a vision
**
 Michael Gasch
   - Central IT Department -
Max Planck Institute for Evolutionary Anthropology
Deutscher Platz 6
04103 Leipzig
Germany
**
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3.0.6 speed problem

2004-09-07 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Fabrice Robin wrote:
| Hi,
|
| I'm running a samba server version 3.0.6-2.FC2 on
| a Dell PowerEdge 2600 SC RAID5, linux Fedora Core
| 2 (Up to date).
|
| Windows user often experience critical speed problem
| when writing files on a samba share (ex: 19mn for
| a 36 mb file instead of nearly 10s), or printing.
|
| A top, or ps -ax, or even samba log files do
| not indicate anything.
|
| I have to make a 'kill -HUP' on their smbd pid in
| order for them to recover a normal writing/printing
| speed !!!
|
| Am I the only one to experience this problem ???
Haven't seen this.  You could try
(a) runnign strace on one of the slow process to see if
the smbd process is tied up with something else.
(b) look at network trace to see if the XP client is
being slow or if there is some other traffic going on.
Although I will admit that the fact of sending the slow
process a HUP signal restores normal performance is very
strange.

cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBPa8xIR7qMdg1EfYRAryQAJ4wMsOhMRjFddmLYBUF/pTITnktggCfZJxR
f4zKHZE42F9LKF3IboiW8ZE=
=tFlJ
-END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Problems with 'ntlm_auth --require-membership-of' using Samba 3.0.6

2004-09-07 Thread Matt Doran
Hi there,
I'm trying to configure Squid to use a windows domain for 
authentication, and all goes well until I add the 
--require-membership-of option on ntlm_auth.   I need to restrict 
access based on group membership, however ntlm_auth does not seem to be 
behaving correctly.  I'm using Samba 3.0.6 on Debian and I'm using a 
Windows 2000 (SP4) Domain Controller.  I configured winbind as discussed 
here: http://www.squid-cache.org/Doc/FAQ/FAQ-23.html#ss23.5

ntlm_auth seems to report the membership of some groups correctly, but 
incorrectly for others.

Checking the group membership using getent, shows that the user matt 
belongs to the Domain Admins, Domain Users and TestGroup groups.

   ~$ getent group -s winbind | grep matt
   VM-DOMAIN\Domain Admins:x:10002:VM-DOMAIN\Administrator,VM-DOMAIN\matt
   VM-DOMAIN\Domain Users:x:1:VM-DOMAIN\Administrator, snip,
   VM-DOMAIN\matt
   VM-DOMAIN\TestGroup:x:10022:VM-DOMAIN\Administrator,VM-DOMAIN\matt
Then using ntlm_auth to check for membership to the Domain Users or 
Domain Admins groups works as expected.

   ~$ ntlm_auth --require-membership-of='VM-DOMAIN\Domain Users'
   --username=matt --password=
   NT_STATUS_OK: Success (0x0)
   ~$ ntlm_auth --require-membership-of='VM-DOMAIN\Domain Admins'
   --username=matt --password=
   NT_STATUS_OK: Success (0x0)
But when I check for membership of the TestGroup (which is a Global 
group just like Domain Admins) it fails:

   ~$ ntlm_auth --require-membership-of='VM-DOMAIN\TestGroup'
   --username=matt --password=
   NT_STATUS_LOGON_FAILURE: Logon failure (0xc06d)
So the getent output above, shows that matt is a member of the 
TestGroup group, but ntlm_auth seems to produce the incorrect output.  
It appears to know that the group and user exists and the password is 
valid because varying these params gives different error messages:

   ~$ ntlm_auth --require-membership-of='VM-DOMAIN\TestGroup2'
   --username=matt --password=
   [2004/09/07 22:48:18, 0]
   utils/ntlm_auth.c:get_require_membership_sid(237)
 Winbindd lookupname failed to resolve VM-DOMAIN\TestGroup2 into a SID!
   ~$ ntlm_auth --require-membership-of='VM-DOMAIN\TestGroup'
   --username=matt2 --password=
   NT_STATUS_NO_SUCH_USER: No such user (0xc064)
   ~$ ntlm_auth --require-membership-of='VM-DOMAIN\TestGroup'
   --username=matt --password=WRONG_PWD
   NT_STATUS_WRONG_PASSWORD: Wrong Password (0xc06a)

Now for the really weird part.  If I test to see if the Administrator 
user belongs to this group (which it does ... see the getent output 
above) then it succeeds:

   ~$ ntlm_auth --require-membership-of='VM-DOMAIN\TestGroup'
   --username=Administrator --password=password
   NT_STATUS_OK: Success (0x0)
The logs don't produce anything that looks relevant.  I'm stumped.  I've 
tried many different things, but I can't figure out the pattern as to 
why these are failing.   Something to do with user defined 
groups/users.  Could there be something wrong missing from the windows 
user/group setup?The domain controller is a clean install of W2K 
SP4, which was then activated as a domain controller.

Any ideas would be greatly appreciated!
Regards,
--
Matt Doran
PaperCut Software Pty. Ltd.
Web: http://www.papercut.biz
Blog:http://blogs.papercutsoftware.com/matt.doran/
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] PRINTER share not appearing

2004-09-07 Thread Chris McKeever
I was doing good - getting close to rolling out a point-n-print
samba/cups server when while uploading a driver file, I got some
random windows error about the PRINT SUSBYSTEM was not available. 
After reconnecting to the samba server, the PRINTER share was gone. 
Uninstall the SAMBA RPM and re-install yielded nothing.  I cant figure
out what happened to it.

any ideas?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Win98: supply other username for accessing share

2004-09-07 Thread floeff
Hello there,

I was wondering if Windows 98 has the possibility to supply another username than the 
current logon name to a Samba share. I tried opening with

\\server\share%username

but that does not seem to work. Are there any parameters in smb.conf to activate that? 
Is there any third-party client for Windows 98 that can do that?

Thanks
Florian

Arcor-DSL: jetzt ohne Einrichtungspreis einsteigen oder wechseln
Sie sparen 99,95 Euro. Arcor-DSL ist in vielen Anschlussgebieten
verfügbar. http://www.arcor.de/home/redir.php/emf-dsl-1

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] pdf section with smbprngenpdf

2004-09-07 Thread John Kappeser
hi,

i don´t know how to use your PDF section in smb.conf

in globals i use :

printing = cups
#cups options = raw
printcap name = cups


on windows side i use the suggested apple driver

when printing from windows i get the following failures:

Sep  7 16:50:56 filesrv smbd[18362]: [2004/09/07 16:50:56, 0] 
printing/print_cups.c:cups_queue_get(911)
Sep  7 16:50:56 filesrv smbd[18362]:   Unable to get jobs for 
ipp://localhost/printers/pdf - client-error-not-found

Sep  7 16:53:03 filesrv smbd[18439]: [2004/09/07 16:53:03, 0] 
smbd/connection.c:register_message_flags(220)
Sep  7 16:53:03 filesrv smbd[18439]:   register_message_flags: tdb_fetch failed

can anybody tell me the right way step-by-step.

thanx a lot.

-- 
Mit freundlichen Grüßen

john kappeser

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Type of loggon

2004-09-07 Thread Andrea
Hi all,
I have  the samba 3.0 and is my file server.
I have set the Security Level to User.
When a Win Client contact for the first time in the day the server, it 
ask to client the user and the password.
If the user and pw are exact the samba server loggin the client.

After that the client exit to the shared folders in the samba server and 
do other
But when it for the second time contact the samba server,
the server doesn't ask again the user and the password but loggin 
automatically.

There is a way for force the authentications every time that the client 
contact the server,
not only if the client restart your machines.

Thanks all
Andrea Italy
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] issues with samba / shares

2004-09-07 Thread Tom Ryan
After upgrading to 3.0.6 (RHEL's version), I can no longer access shares
(file or printer) on the server by referencing the short hostname. I
must now enter the FQDN..

any ideas?

Tom
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Need LDAP machine entry

2004-09-07 Thread Chris St. Pierre
I'm trying to troubleshoot a nasty problem with Samba 2.2.8a that I
asked about here a while back, and I need someone with a working
LDAP-Samba PDC -- preferably 2.2.8a, ideally running on Mac OS X, but
I'll take what I can get -- to post the results of an ldapsearch for
one of their machine trust accounts.  All I'd need is the results of a
command along these lines:

ldapsearch -LLL -b ou=Machines,o=example,o=com uid=machine$

I have found that smbpasswd is doing *something* wrong when it comes
to the creation of those accounts, but I don't know what.  If I was
able to compare with one that I know works, I might be able to figure
it out.  Thanks.

Chris St. Pierre
Unix Systems Administrator
Nebraska Wesleyan University
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Need LDAP machine entry

2004-09-07 Thread Chris McKeever
I am running 2.2.8 -- machine group on mine in COMPUTER though

ldapsearch -LL -H ldap://localhost -b dc=prupref,dc=com -x
(uid=prupref-web$)
version: 1

dn: uid=prupref-web$,ou=Computers,dc=prupref,dc=com
objectClass: top
objectClass: posixAccount
objectClass: sambaAccount
uidNumber: 518
gidNumber: 1010
homeDirectory: /dev/null
loginShell: /bin/false
uid: prupref-web$
pwdLastSet: 1092785559
logonTime: 0
logoffTime: 0
kickoffTime: 0
pwdCanChange: 0
pwdMustChange: 0
displayName: PRUPREF-WEB$
cn: PRUPREF-WEB$
description: Computer
rid: 2036
primaryGroupID: 3021
acctFlags: [W  ]



On Tue, 07 Sep 2004 10:33:47 -0500 (CDT), Chris St. Pierre
[EMAIL PROTECTED] wrote:
 I'm trying to troubleshoot a nasty problem with Samba 2.2.8a that I
 asked about here a while back, and I need someone with a working
 LDAP-Samba PDC -- preferably 2.2.8a, ideally running on Mac OS X, but
 I'll take what I can get -- to post the results of an ldapsearch for
 one of their machine trust accounts.  All I'd need is the results of a
 command along these lines:
 
 ldapsearch -LLL -b ou=Machines,o=example,o=com uid=machine$
 
 I have found that smbpasswd is doing *something* wrong when it comes
 to the creation of those accounts, but I don't know what.  If I was
 able to compare with one that I know works, I might be able to figure
 it out.  Thanks.
 
 Chris St. Pierre
 Unix Systems Administrator
 Nebraska Wesleyan University
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Please help with winbind setup

2004-09-07 Thread Nicholas Porter
Hi there Josh

To be honest im really a in a bit over my head here but hopefully you can
help me.Ok I currently have a squid server in place and now want the
authentication setup using NT controllers.I have read a lot of info on the
winbind process interacting with PAM but im too much of a begginer to figure
out how to install and configure it.Please could you guide me to a site with
setup and install process or even if you could guide me through it .

Thanks a lot for your time and will hopefully here from you soon.

 
Regards
Nicholas Porter
IDT Global Ltd
IT Systems Engineer
95 Gresham Street
London
EC2V 7NA
Tel: +44 (0) 207 549 6000
Mo: +44 (0) 778 8148 405
Fax: +44 (0) 207 549 6138
 

PRIVILEGED AND CONFIDENTIAL:
The information contained in this e-mail and any attachments, is
confidential and may be legally privileged. It comes without any warranties
or intention to create a contractual relationship unless specifically
indicated otherwise and signed by an authorized signatory of an IDT entity
located in Europe (IDT).  Any part of this e-mail which is purely personal
in nature is not authorized by IDT and any opinions or advice expressed
herein are not necessarily endorsed by IDT. The information herein is
intended only for use by the intended recipient(s) named above. If you have
received this transmission in error, please notify the sender immediately
and permanently delete the e-mail and any copies, printouts or attachments
thereof. Any dissemination, alteration, distribution or copy of this
material is strictly prohibited. All liability for viruses and errors is
hereby excluded and no responsibility is accepted by IDT for any loss or
damage arising in any way from its use.
 
 
 
 
 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Type of loggon

2004-09-07 Thread Heinz Allerberger
High Andrea,
I believe, what you describe is a normal behaver from a WinNT Client.
It depends a little bit from the Service Pack. I did not found a way to 
prevent this, only a reboot is the successful and secure way to log out 
from a share.

In my opinion it is a bug into the Windows-software.
Heinz Allerberger
Systemadministrator
Zentrum Neurologie
Universitätsklinikum
Frankfurt am Main
Tel: 069/6301-4274
Fax: 069/6301-6842
Piepser 18-0455

Andrea wrote:
Hi all,
I have  the samba 3.0 and is my file server.
I have set the Security Level to User.
When a Win Client contact for the first time in the day the server, it 
ask to client the user and the password.
If the user and pw are exact the samba server loggin the client.

After that the client exit to the shared folders in the samba server 
and do other
But when it for the second time contact the samba server,
the server doesn't ask again the user and the password but loggin 
automatically.

There is a way for force the authentications every time that the 
client contact the server,
not only if the client restart your machines.

Thanks all
Andrea Italy
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] authenticate with kerberos via login to X Windows

2004-09-07 Thread hunger
Hello list:

Is there a way to setup my system so I can authenticate with kerberos
when I login to X Windows?  I'm trying to avoid having to open a console
and manually type the kinit [EMAIL PROTECTED] command.  If anyone would
mind helping, or can point to good step-by-step instructions, please let
me know.  Thanks.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Rejected posting to WISENET@LISTSERV.UIC.EDU

2004-09-07 Thread L-Soft list server at UIC (1.8e)
Your posting to  the WISENET list has been rejected  because it contains the
'W32/[EMAIL PROTECTED]' virus in attachment 'incest.rtf.exe.txt'. You are strongly
advised to check your computer for viruses as soon as possible!

 Rejected message (622 lines) -
Received: (qmail 11097 invoked from network); 7 Sep 2004 11:27:40 -0500
Received: from mailin-2.cc.uic.edu (HELO uic.edu) (128.248.155.213)
  by listserv.uic.edu with SMTP; 7 Sep 2004 11:27:40 -0500
Received: from uicvm.uic.edu (218-162-132-29.dynamic.hinet.net [218.162.132.29])
by uic.edu (8.12.10/8.12.10) with ESMTP id i87GRapw005392
for [EMAIL PROTECTED]; Tue, 7 Sep 2004 11:27:37 -0500
Message-Id: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: your job? (I found that!)
Date: Wed, 8 Sep 2004 00:27:37 +0800
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary==_NextPart_000_0010_1A15.3193
X-Priority: 3
X-MSMail-Priority: Normal
X-Scanned-By: MIMEDefang 2.28 (www . roaringpenguin . com / mimedefang)

This is a multi-part message in MIME format...

--=_NextPart_000_0010_1A15.3193
Content-Type: text/plain; name=WARNING.TXT
Content-Disposition: inline; filename=WARNING.TXT
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)

   This note contains one or more suspicious attachments. The
   ACCC mailservers have automatically quarantined these
   attachments as a precaution, and inserted this explanation.

   These attachments almost always carry viruses, but we can't be
   completely sure. If you were not expecting these attachements,
   just hit delete now.  But if you do want them, to recover them
   read this:

  http://www.accc.uic.edu/ecomm/mimedefang.html


   The quarantine actions taken for this note were:

'incest.rtf.exe' was renamed to 'incest.rtf.exe.txt'

--=_NextPart_000_0010_1A15.3193
Content-Type: text/plain;
charset=Windows-1252
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

your icq number?

--=_NextPart_000_0010_1A15.3193
Content-Type: application/octet-stream; name=incest.rtf.exe.txt
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=incest.rtf.exe.txt
Content-Description: incest.rtf.exe.txt

TVqQAAME//8AALgAQAAA
uGsiX1YvQzEFL0MxBS9DMQWsXz8FI0MxBcdc
OwU0QzEFL0MwBXBDMQWsS2wFIkMxBcdcOgUqQzEFl0U3BS5DMQVSaWNoL0Mx
BQAAQ29tcHJlc3NlZCBieSBQZXRpdGUgKGMpMTk5OSBJYW4gTHVj
ay4AAFBFAABMAQMA7Kc7QAAA4AAPAQsBBgAAUBwBAABC
oAEAABBgAEAAABACAAAEAAQAALABAAAE
AgAAEAAAEAAQAAAQEAAA/KEB
AK8BkAEACAUA

gAEAABBW
CAAAYAAA4C5wZXRpdGUAABCQAQAIBQAAAF4A
AEAAAEAAAKsDoAEAAAQE
AABgAADi









AIgCAACGAaK6i0Qk
BIPEKo2QNIPECGoQi9hmBS0AUFJqAIsb/xNq//9TDEVSUk9SIQBDb3Jy
dXB0IERhdGEhALgAoEEAaItwQABk/zUAZIklAGacYFBoAABAAIs8
JIswZoHHgAeNdAYIiTiLXhBQVmoCaIAIAABXahNqBlZqBGiACAAAV//Tg+4I
WfOlWWaDx2iBxsIAAADzpf/TWI2QuAEAAIsKD7rxH3MWiwQk/Yvwi/gDcgQD
egjzpYPCDPzr4oPCEIta9IXbdNiLBCSLevgD+FKNNAHrF1hYWFp0xOkc
AtJ1B4oWg+7/EtLDgfsAAAEAcw5oYMD//2hg/P//tgXrIoH7AAAEAHMOaICB
//9ogPn//7YH6wxoAIP//2gA+///tghqADLSS6QzyYP7AH6k6Kr///9yF6Qw
X/9L6+1B6Jv///8TyeiUcvLDM+3o6f///4PpA3MGiwQkQesji8EPts7o
df///xPASXX2g/D/O0QkBIPVATtEJAiD1QCJBCToVxPJ6FD///8TyXUI
6Kb///+DwQIDzVYr2Y00OPOkXuuDLovAKRUAgKBkAAD8jwEAXDsBAAlO
EAAA7wMAAD1qAQDgEwAAAGAAAEAYAACwdgEAvDUAAACAAACItAEAANEU
AABiowEAiKIBAG2jAQCUogEA
eqMBAKiiAQCGowEAsKIB
AJGjAQC4ogEAnqMBAMCiAQAA
AMiiAQDWogEAAOKiAQDwogEAAKMBABKjAQAAJKMB
AAALAACAAECjAQAAVKMBAE1lc3NhZ2VCb3hBd3Nw
cmludGZBRXhpdFByb2Nlc3MAAABMb2FkTGlicmFyeUEAR2V0UHJv
Y0FkZHJlc3MAVmlydHVhbFByb3RlY3QASW50ZXJuZXRHZXRDb25u
ZWN0ZWRTdGF0ZQAAAEdldE5ldHdvcmtQYXJhbXMAUmVnT3BlbktleUEA
VVNFUjMyLmRsbABLRVJORUwzMi5kbGwAV0lOSU5FVC5kbGwAV1MyXzMyLmRs

[Samba] How to Upgrade from 2.2.8a to 3.0.6

2004-09-07 Thread keith_allen

I have been running samba 2.2.8a with approx 400 users accessing it for
their network drives. What I need to do now is to upgrade it to version
3.0.6. I have been trying to upgrade my development system with limited
success this is what I have done.
 
stopped samba
 
/usr/src/samba-3.0.6/source
 
used the same configure options as when I installed 2.2.8a i.e
 
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--enable-shared=yes --with-acl-support --with-winbind --with-quotas
 
make clean
make
make install
 
cd nsswitch
cp libnss_winbind.so /lib
started samba
 
wbinfo -t says the secret is good
wbinfo -g returns groups
wbinfo -u returns users
 
getnet passwd lists users
 
 
so all seems well untill I go to my home directorys which are located
/smb/homes
 
if I do a directory listing it now looks like this
 
 
drwxrws---  22  16043 CITDOM+Domain Admins    4096 Aug 9 15:46 op86v
 
it should look like this
 
drwxrws---  22  CITDOM+OP86V CITDOM+Domain Admins    4096 Aug 9 15:46 op86v
 
 
getnet passwd|grep op86v returns
 
CITDOM+OP86V:x:16043:1:User Name:/smb/homes/op86v:/bin/false
 
 
If I type chown citdom+op86v op86v (or CITDOM+OP86V)
 
I get invalid user
 
If I type chown OP86V op86v it works but is using a uid of 20266
 
Can anybody point me in the right direction as to how to get this to work
correctly, i.e I would like to move from 2.2.8a to 3.0.6 with out having to
change uids etc.
 
Thanks in advance for any advice you might be able to give
 
 
Keith Allen



Unencrypted electronic mail is not secure and may not be authentic.
If you have any doubts as to the contents please telephone to confirm.
The information contained in this message is confidential and is
intended for the addressee(s) only. If you have received this message in
error or there are any problems, please notify the originator
immediately. The unauthorised use, disclosure, copying or alteration of
this message is strictly forbidden. Opinions, conclusions and other
information expressed in this message are not given or endorsed by
Safeway unless otherwise indicated by an authorised representative
independent of this message.


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Sharing Issues

2004-09-07 Thread cH4os
Greetings All,
Having a Sharing Violation issue, on one of my shares (SPECWORKS) 
running a Paradox Database program from this share...

Could someone verify this for me?
[specworks]
   browseable = yes
   comment = SpecWorks Data
   path = /home/specworks
   writeable = yes
   valid users = steven tim gary dennis larry david
   security mask = 0777
   force security mode = 0
   directory security mask = 0777
   force directory security mode = 0
BASICALLY, I need these users FULL access to this share  Directory
I have the OWNER as me, and the GROUP as SPECWORKS, I have all of the 
users members of the SPECWORKS group...

Thanks
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: issues with samba / shares (potential issue)

2004-09-07 Thread Tom Ryan
ok.. I dug around a bit more and it would appear that the problem is
related to the kerberos libraries I now have (which RH also updated).

short of remapping all of my shares, is there any workaround?

Tom

On Tue, 7 Sep 2004, Tom Ryan wrote:

 After upgrading to 3.0.6 (RHEL's version), I can no longer access shares
 (file or printer) on the server by referencing the short hostname. I
 must now enter the FQDN..

 any ideas?

 Tom


___
Tom RyanVoice: 856-225-6361
Consulting System Administrator   Fax: 856-969-7900
Rutgers School of Law - Camden   IT Help Desk: 856-225-2343
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Sharing Issues

2004-09-07 Thread cH4os
[specworks]
   browseable = yes
   comment = SpecWorks Data
   path = /home/specworks
   writeable = yes
   valid users = steven tim gary dennis larry david
   security mask = 0777
   force security mode = 0
   directory security mask = 0777
   force directory security mode = 0
When a new file is created it's permissions need to be RWX for all 
users, as this lock file is created, edited and deleted after each 
session... First User on App Creates the File, all users are editing, 
and the last one off deletes...

Is this config correct for this scenario?
TIA
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] upgrade from 3.0.2a to 3.0.6

2004-09-07 Thread éric le hénaff
hello,
i tried to upgrade from 3.0.2a to 3.0.6 tonight. my smb.conf is below. (i
upgraded by apt-get install samba samba-common winbind )
it didnt work : i was asked for a username and password for everything even
when i tried to acces the shares' root with its unc name ( \\server ).
do u have any information on that ? somethng changed in the authentification
?
my server is a debian sarge on a dell biprocessor. it is a secondary file
server holding homes and groups shares documents. the pdc is a windows nt 4.
regards


# Global parameters
[global]
workgroup = 
server string = Serveur %h (Samba %v)
security = DOMAIN
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
idmap uid = 1-2
idmap gid = 1-2
invalid users = root

[users]
path = /share/users
read only = No
create mask = 0760
force create mode = 0760
directory mask = 0770
force directory mode = 0770

[groupes]
path = /share/groupes
read only = No
create mask = 0760
force create mode = 0760
directory mask = 0770
force directory mode = 0770



-- 
_

Eric LE HENAFF
Informaticien auprès des bibliothèques de l'ENS
Centre de Ressources Informatiques
Ecole Normale Supérieure
Paris



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] SAMBA Server and Domain Mismatch Problem

2004-09-07 Thread Emil P. Henry
Hello!
   We are running SAMBA 2.2.8a from HP (CIFS) on a HP-UX (11i) 
server. It is running great and all that. The only issue is that the 
users would like to be able to share there shares to other users that 
they specify through the Windows clients. The problem is that when they 
look at properties they see the hostname\username under the Group or 
user name - which is themselves. When we try to do the domain\username 
it  accepts it as valid, but disappears when we try to apply.

  Please advice.
  Thanks in advance.
Regards,
Emil
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Minimum Permissions Required to Associate to a Windows Server 2003 AD Realm

2004-09-07 Thread Tavis
I'm setting up a windows server 2003 ADS Realm with a few samba servers 
associating to it, however i've found that the accounts on the DC that i 
use to associate samba with need to be in the administrator group 
otherwise the association fails. (ads_join_realm: Insufficient access)

I'm just curious what the absolute minimum privileges are on the Windows 
Server 2003 DC to allow the Samba server to Join the ADS Realm? I don't 
like the idea of giving the accounts used by samba administrative 
access, and it just doesn't seem necessary.

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA Server and Domain Mismatch Problem

2004-09-07 Thread eric roseme
Hi Emil,
Two things:
1.  If you want to use HP CIFS server with POSIX ACLs, then you will 
need JFS 3.3 or later with file system layout 4 for your shared directories.

2.  On CIFS 2.2.X when you try to add a domain user to the ACL it will 
not work, because you are trying to add a Windows SID to a POSIX file 
descriptor.  That will not work.  Your users must add hostname\username 
because that is a UID that *can* be added to the POSIX file descriptor. 
 This is all explained in HP CIFS Server Administrator's Guide:

http://www.docs.hp.com/hpux/pdf/B8725-90073.pdf
Go to page 59 for NT clients, 68 for 2000/XP clients.  The instructions 
are pretty good.

The symptom that you are seeing is the same for attempting to add an SID 
to the POSIC ACL, or for adding a UID to a filesystem that does not 
support ACLs.

Eric Roseme
Hewlett-Packard
Emil P. Henry wrote:
Hello!
   We are running SAMBA 2.2.8a from HP (CIFS) on a HP-UX (11i) 
server. It is running great and all that. The only issue is that the 
users would like to be able to share there shares to other users that 
they specify through the Windows clients. The problem is that when they 
look at properties they see the hostname\username under the Group or 
user name - which is themselves. When we try to do the domain\username 
it  accepts it as valid, but disappears when we try to apply.

  Please advice.
  Thanks in advance.
Regards,
Emil
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Minimum Permissions Required to Associate to a Windows Server 2003 AD Realm

2004-09-07 Thread Daniel Ramaley
I don't know about Samba specifically, but in the active directory here 
i have an account just for joining Windows machines to the domain. The 
account only has 2 permissions set in group policy, both of which apply 
to computer objects: Write All Properties, and Reset Password.

On Tuesday 07 September 2004 03:27 pm, Tavis wrote:
I'm setting up a windows server 2003 ADS Realm with a few samba
 servers associating to it, however i've found that the accounts on
 the DC that i use to associate samba with need to be in the
 administrator group otherwise the association fails.
 (ads_join_realm: Insufficient access)

I'm just curious what the absolute minimum privileges are on the
 Windows Server 2003 DC to allow the Samba server to Join the ADS
 Realm? I don't like the idea of giving the accounts used by samba
 administrative access, and it just doesn't seem necessary.

-- 

Dan Ramaley
Digital Media Library Specialist
(515) 271-1934
Cowles Library 140, Drake University

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Login Script won't load if XP user is not local admin.

2004-09-07 Thread Tom Skeren
It's a simple .bat file on the samba server.  It's contents are all of:
net use z: \\server\share
However roving profiles won't load, and neither will the login bat file, 
unless user is a local admin account on the XP Pro box.  Samba 3.0.5.  
Anyone have any ideas?

TMS III
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Minimum Permissions Required to Associate to a Windows Server 2003 AD Realm

2004-09-07 Thread Tavis
In the associated group policy, any authenticated user currently has 
Add Workstations to domain access, this is a dev network btw ;P

Also, using a windows XP client, i can join the machine to the ads realm 
using the same account that i try to use (and fails) with the samba server

ADS Server, is Windows Server 2003 Enterprise running in forest and 
domain mode of windows server 2003, there must be some permission that 
Samba requires to join an ADS Realm that i'm not aware of.. has anyone 
else come across a similar problem?

Samba version is 3.0.6, if anyone is following this let me know if you 
need a debug log, although it seems that its purely a windows 
configuration issue

Daniel Ramaley wrote:
I don't know about Samba specifically, but in the active directory here 
i have an account just for joining Windows machines to the domain. The 
account only has 2 permissions set in group policy, both of which apply 
to computer objects: Write All Properties, and Reset Password.

On Tuesday 07 September 2004 03:27 pm, Tavis wrote:
 

I'm setting up a windows server 2003 ADS Realm with a few samba
servers associating to it, however i've found that the accounts on
the DC that i use to associate samba with need to be in the
administrator group otherwise the association fails.
(ads_join_realm: Insufficient access)
I'm just curious what the absolute minimum privileges are on the
Windows Server 2003 DC to allow the Samba server to Join the ADS
Realm? I don't like the idea of giving the accounts used by samba
administrative access, and it just doesn't seem necessary.
   

 

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Internal error: signal 11

2004-09-07 Thread Tim Gibson
Hi,

I found the following error in my log files:

lib/fault.c:fault_report(37)  INTERNAL ERROR: Signal
11 in pid 4159 (3.0.2a)  Please read the appendix Bugs
of the Samba HOWTO collection : 1 Time(s)

I have searched the HOW-To collection and can't find
any info on it. Samba seems to be working without any
problems, but I would like to know what it means.

Tim




__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] whats the right path

2004-09-07 Thread Mark Sarria
I am installing SLSE 9, I have over 2000 users, and 1000 computers what backend ( 
LDAP, SMBPASS)  do you guys suggest I use and why?


all your input is greatly appreciated.

Mark
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] whats the right path

2004-09-07 Thread Chris McKeever
On Tue, 7 Sep 2004 18:16:15 -0700, Mark Sarria [EMAIL PROTECTED] wrote:
 I am installing SLSE 9, I have over 2000 users, and 1000 computers what backend ( 
 LDAP, SMBPASS)  do you guys suggest I use and why?
 

If you are doing anything with multiple file/print servers, then you
will want the replication that LDAP provides...if I were you, even if
there werent multiple servers, I would preplan and go with LDAP - even
if you just make a second server to keep as a live/fail over LDAP
database

 all your input is greatly appreciated.
 
 Mark
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: 'point-and-print' general questions

2004-09-07 Thread Chris McKeever
On Mon, 6 Sep 2004 14:50:39 +0530, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I am using SAMBA/CUPS in the raw mode, so each of the printers has its
 own WINDOWS .drivers ---
 
 I have been playing with this a bunch - it seems to work when selecting
 APPLY after
 uploading the drivers - it hangs for a little while, but eventually
 finishes and closes
 out the dialog box...
 
 
 One possible reason for this could be that the devmode information
 (Printer specific) might not be available and hence you see that delay
 in the Properties window closing. You could probably confirm this by
 sniffing out the network packets You might see repeated Open
 Printer and Get Printer calls. You might also see an increase in the
 memory usage by the Samba daemons.
 

I ran an ethereal...granted this is one of the first times using it -
I didnt seem to find anything as straight forward as what you said to
look for.  I did notice that the SMB daemon does crank up on its CPU
load while the conversation is going on.  I tried this all with an HP4
and it seemed to work much smoother - it was when I tried it with a
TOSHIBA that is hangs.  Almost 10 minutes waiting after uploading the
DRIVER files and trying to close out of the window using APPLY .. any
hints on ETHEREAL to packet sniff more telling, or why in general this
hangs??

thanks

 
 I am testing this with Windows 2000 - and notieced something rather
 strange..after
 installing the printer for two different accounts, if I go int oone and
 edit the
 preferences using an account with PRINT ADMIN priviledges, it actually
 updates the
 defaults on the other users preferences
 
 Changes made to the printing defaults (Advanced Tab) will be reflected
 on the other machines where the drivers have been downloaded. Changes
 made to the printing preferences will be local to that machine only.
 
 The settings stored on the Samba server will be reflected in
 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
 NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers
 
 This is what you see when you invoke the Advanced properties.
 
 Sandy
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Chris McKeever
 Sent: Monday, September 06, 2004 6:08 AM
 To: John Hewitt; [EMAIL PROTECTED]
 Subject: Re: [Samba] Re: 'point-and-print' general questions
 
 On Mon, 6 Sep 2004 10:27:30 +1000, John Hewitt [EMAIL PROTECTED]
 wrote:
  What version of windows printer driver are you using?  Are you using
  the adobe drivers or the cups drivers? I understand the current cups
  drivers have some big issues (hanging windows, unable to print
  landscape) and the cups boys are dumping the current code completely
  and writing from scratch for the new 6 version.  In the meantime using
 
  the adobe drivers is advisable.
 
 
 I am using SAMBA/CUPS in the raw mode, so each of the printers has its
 own WINDOWS drivers ---
 
 I have been playing with this a bunch - it seems to work when selecting
 APPLY after uploading the drivers - it hangs for a little while, but
 eventually finishes and closes out the dialog box...I can also change
 the name of the printer via that dialog as well, and it changes it on
 the SAMBA server.  How one deletes a printer from the command line, I am
 not sure, other than editing the smb.conf and removing the specific
 printer
 
 I am testing this with Windows 2000 - and notieced something rather
 strange..after installing the printer for two different accounts, if I
 go int oone and edit the preferences using an account with PRINT ADMIN
 priviledges, it actually updates the defaults on the other users
 preferences --- I dont know if this is just smoe strange things via
 TSRV.  From the reading, it sounds like once the driver is installed,
 the server defaults are whatever it was set with at time of download
 (section 17.8 SAMBA HOWTO) -- it is very interesting ...
 
 
 
 
  On Sun, 5 Sep 2004 15:19:07 -0500, Chris McKeever [EMAIL PROTECTED]
 
  wrote:
   On Sun, 5 Sep 2004 15:07:59 -0500, Chris McKeever
   [EMAIL PROTECTED] wrote:
I have gotten 'point-and-print' working, but there are a couple
small issues/questions I am trying to get my grasp around:
   
- rpcclient print-1201 -U root%secret -c 'enumdrivers'
  this lists the drivers twice (I saw one other post about this,
without any followup)
   
- When adding drivers via the Windows APW, after uploading the
drivers and the APW closing - are you supposed to CANCEL out of
the printers property window?  If not, the printer on the server
get renamed with how the driver wants to name it
   
  
   I have figured out that if you dont apply, only the drivers are
   uploadined, but they are not associated with the printer - however,
   when I do hit OK or apply - the printer property window hangs (it
   does however do the association) - but it also changes the name of
   the printer to that of the driver in both enumprinters and
   

[Samba] samba server error message

2004-09-07 Thread A_K_S_H_A_T
  SAMBA server error  ( post #1) 

when i tried 

#smbclient //c5m9x2/c

then it gives me message,

added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0


password:

tree connect failed:ERRSRV- ERRinvnetname (Invalid network name in tree connect)

Any idea??


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] 2 HD, same PC

2004-09-07 Thread Bryan Peifer
Hello,
I have two hard drives on one PC.  One is a Windows XP drive and the 
other is a Linux (redhat 9.0) drive.  I want Linux to recognize and 
share files on the XP drive.  Where is there documentation addressing 
this situation?  Because now I work mostly with my Linux environment, I 
wanted to access the XP drive from Linux.

Bryan Peifer
[EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] 2 HD, same PC

2004-09-07 Thread Rohan Gilchrist
On Wed, 8 Sep 2004, Bryan Peifer wrote:
Hello,
I have two hard drives on one PC.  One is a Windows XP drive and the other is 
a Linux (redhat 9.0) drive.  I want Linux to recognize and share files on the 
XP drive.  Where is there documentation addressing this situation?  Because 
now I work mostly with my Linux environment, I wanted to access the XP drive 
from Linux.

Bryan,
What is the file system of you XP drive? If it is FAT or FAT32, then this is easy.
#mount -t vfat /dev/hdx /mnt/whatever
Where x is the letter of the drive. If XP is the first drive, then it will most likely
be /dev/hda1, if it's the second drive, then /dev/hdb1, or /dev/sda1 or /dev/sdb1 if 
they're
scsi drives.
If the XP drive has the NTFS file system, then you're going to have more work on 
your hands.
There's a patch that can allow the linux kernel to read NTFS file systems, but I 
haven't used it
in a while and I can't remember where it can be found.
Alternatively, you can recompile your kernel to allow it to read NTFS file systems 
(again something
I haven't done for a while), but from memory, mounting an NTFS file system with 
read/write access is
dangerous (loss of data possible).
Hope this helps.
Rohan Gilchrist 
[EMAIL PROTECTED]
http://www.e-mailme.org/~rohan/
0412 648 909

***
This e-mail and any files transmitted with it are privileged and
confidential information intended for the use of the addressee. The
confidentiality and/or privilege in this e-mail is not waived, lost or
destroyed if it has been transmitted to you in error. If you have received
this e-mail in error you must:
(a) not disseminate, copy or take any action in reliance on it;
(b) please notify the sender immediately by return e-mail; and
(c) please delete the original e-mail.
Except as required by law, we do not represent, warrant and/or guarantee 
that the integrity of this communication has been maintained nor that the 
communication is free of errors, virus, interception, inference or 
interference.
***
Bryan Peifer
[EMAIL PROTECTED]
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] PDC/Samba 3.0.6/tdbsam

2004-09-07 Thread mike hassell
I recently converted my Samba PDC from ldapsam to tdbsam as I was
having too many problems with the ldap backend failing after a power
outages.  I now have a few questions regarding tdbsam:

1.  Is there any GUI user administration tool that I can use in
conjunction with a tdbsam backend?  Usrmgr seems to function as user
root on the domain, but does not seem very reliable.  I'm looking for
something equivalent to LAM that I can give to the business owner, so
he can easily create new accounts, etc.

2.  What should my method of backup be?  Should I just shutdown
smbd/nmbd and copy secrets.tdb and passdb.tdb to backup media?  I was
using 'slapcat' when the backend was LDAP, which worked just fine.

3.  How can I force a password change at next logon for new users?  I
have a few users who have kept their default password and I'd like to
force them to change.

4.  What are some good utils to use to perform an audit on my system? 
I would like to audit each workstation attached to the domain to make
sure that permissions are set correctly on the proper files, etc.

Any answers to the above questions would be greatly appreciated.  

Thanks,
Mike
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


svn commit: lorikeet r54 - in trunk/heimdal/lib/hdb: .

2004-09-07 Thread abartlet
Author: abartlet
Date: 2004-09-07 07:34:46 + (Tue, 07 Sep 2004)
New Revision: 54

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=lorikeetpath=/trunk/heimdal/lib/hdbrev=54nolog=1

Log:
Add support for userAccountControl flags in the hdb-ldb backend.

This means that users now require pre-auth (unless turned off), but
also required a special hack for the krbtgt account.

Andrew Bartlett


Added:
   trunk/heimdal/lib/hdb/hdb-ldb.h
Modified:
   trunk/heimdal/lib/hdb/hdb-ldb.c


Changeset:
Sorry, the patch is too large (489 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=lorikeetpath=/trunk/heimdal/lib/hdbrev=54nolog=1


svn commit: samba r2237 - in trunk/source/nsswitch: .

2004-09-07 Thread vlendec
Author: vlendec
Date: 2004-09-07 12:14:43 + (Tue, 07 Sep 2004)
New Revision: 2237

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/source/nsswitchrev=2237nolog=1

Log:
While torturing winbind a bit I found the following unfortunate behaviour:

Sending multiple requests at a high rate for a slow operation exposed that no
response comes back until the last request in the queue has been
processed. This is an unfortunate result of serially going through all sockets
that have shown to be readable or writable. All client sockets become readable
at the same time, none of them is writable. We go through them, read the
request, process the complete request. Before we enter the select system call
the next time all requests have to have completed.

This patch optimizes this by first looking at the sockets for writability. A
write on a socket that came back from select does not block, so this
additional loop might have a non-zero cost, but it can't prevent other
operations from proceeding.

After a possibly long-running winbindd_process() we directly start select()
again. To avoid starvation the currently processed client is demoted to be the
last one in the list of clients.

Please revisit this change and possibly apply to 3_0, I'm not really sure
whether this is serious enough to be included in 3_0.

Volker

Modified:
   trunk/source/nsswitch/winbindd.c
   trunk/source/nsswitch/winbindd_util.c


Changeset:
Modified: trunk/source/nsswitch/winbindd.c
===
--- trunk/source/nsswitch/winbindd.c2004-09-06 11:09:27 UTC (rev 2236)
+++ trunk/source/nsswitch/winbindd.c2004-09-07 12:14:43 UTC (rev 2237)
@@ -708,6 +708,7 @@
int maxfd, listen_sock, listen_priv_sock, selret;
struct timeval timeout;
 
+   again:
/* Handle messages */
 
message_dispatch();
@@ -858,6 +859,15 @@
for (state = winbindd_client_list(); state; 
 state = state-next) {
 
+   /* Data available for writing */
+
+   if (FD_ISSET(state-sock, w_fds))
+   client_write(state);
+   }
+
+   for (state = winbindd_client_list(); state; 
+state = state-next) {
+
/* Data available for reading */
 
if (FD_ISSET(state-sock, r_fds)) {
@@ -890,13 +900,10 @@
if (state-read_buf_len == 
sizeof(state-request)) {
winbind_process_packet(state);
+   winbindd_demote_client(state);
+   goto again;
}
}
-
-   /* Data available for writing */
-
-   if (FD_ISSET(state-sock, w_fds))
-   client_write(state);
}
}
 

Modified: trunk/source/nsswitch/winbindd_util.c
===
--- trunk/source/nsswitch/winbindd_util.c   2004-09-06 11:09:27 UTC (rev 2236)
+++ trunk/source/nsswitch/winbindd_util.c   2004-09-07 12:14:43 UTC (rev 2237)
@@ -743,6 +743,14 @@
_num_clients--;
 }
 
+/* Demote a client to be the last in the list */
+
+void winbindd_demote_client(struct winbindd_cli_state *cli)
+{
+   struct winbindd_cli_state *tmp;
+   DLIST_DEMOTE(_client_list, cli, tmp);
+}
+
 /* Close all open clients */
 
 void winbindd_kill_all_clients(void)



svn commit: samba r2238 - in branches/SAMBA_4_0/source/lib/tdb: common include

2004-09-07 Thread tridge
Author: tridge
Date: 2004-09-07 13:44:49 + (Tue, 07 Sep 2004)
New Revision: 2238

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/lib/tdbrev=2238nolog=1

Log:
the tdb_debug() function was totally bogus - remove it (you can't
convert a ... varargs function to a va_list by just a cast!!)

also mark the tdb log function with PRINTF_ATTRIBUTE() and fixed some
bad format errors in tdb.c that jim found.


Modified:
   branches/SAMBA_4_0/source/lib/tdb/common/tdb.c
   branches/SAMBA_4_0/source/lib/tdb/common/tdbutil.c
   branches/SAMBA_4_0/source/lib/tdb/include/tdb.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdb/common/tdb.c
===
--- branches/SAMBA_4_0/source/lib/tdb/common/tdb.c  2004-09-07 12:14:43 UTC (rev 
2237)
+++ branches/SAMBA_4_0/source/lib/tdb/common/tdb.c  2004-09-07 13:44:49 UTC (rev 
2238)
@@ -89,7 +89,7 @@
 /* NB assumes there is a local variable called tdb that is the
  * current context, also takes doubly-parenthesized print-style
  * argument. */
-#define TDB_LOG(x) (tdb-log_fn?((tdb-log_fn x),0) : 0)
+#define TDB_LOG(x) tdb-log_fn x
 
 /* lock offsets */
 #define GLOBAL_LOCK 0
@@ -277,7 +277,7 @@
if (tdb-locked[list+1].count == 0) {
if (!tdb-read_only  tdb-header.rwlocks) {
if (tdb_spinlock(tdb, list, ltype)) {
-   TDB_LOG((tdb, 0, tdb_lock spinlock failed on list 
ltype=%d\n, 
+   TDB_LOG((tdb, 0, tdb_lock spinlock failed on list %d 
ltype=%d\n, 
   list, ltype));
return -1;
}
@@ -1755,7 +1755,12 @@
return tdb_open_ex(name, hash_size, tdb_flags, open_flags, mode, NULL, NULL);
 }
 
+/* a default logging function */
+static void null_log_fn(TDB_CONTEXT *tdb, int level, const char *fmt, ...)
+{
+}
 
+
 TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
 int open_flags, mode_t mode,
 tdb_log_func log_fn,
@@ -1778,7 +1783,7 @@
tdb-lockedkeys = NULL;
tdb-flags = tdb_flags;
tdb-open_flags = open_flags;
-   tdb-log_fn = log_fn;
+   tdb-log_fn = log_fn?log_fn:null_log_fn;
tdb-hash_fn = hash_fn ? hash_fn : default_tdb_hash;
 
if ((open_flags  O_ACCMODE) == O_WRONLY) {
@@ -1861,7 +1866,7 @@
if (tdb_already_open(st.st_dev, st.st_ino)) {
TDB_LOG((tdb, 2, tdb_open_ex: 
 %s (%d,%d) is already open in this process\n,
-name, st.st_dev, st.st_ino));
+name, (int)st.st_dev, (int)st.st_ino));
errno = EBUSY;
goto fail;
}
@@ -2082,7 +2087,7 @@
 /* register a loging function */
 void tdb_logging_function(TDB_CONTEXT *tdb, void (*fn)(TDB_CONTEXT *, int , const 
char *, ...))
 {
-   tdb-log_fn = fn;
+   tdb-log_fn = fn?fn:null_log_fn;
 }
 
 

Modified: branches/SAMBA_4_0/source/lib/tdb/common/tdbutil.c
===
--- branches/SAMBA_4_0/source/lib/tdb/common/tdbutil.c  2004-09-07 12:14:43 UTC (rev 
2237)
+++ branches/SAMBA_4_0/source/lib/tdb/common/tdbutil.c  2004-09-07 13:44:49 UTC (rev 
2238)
@@ -112,8 +112,8 @@
alarm(0);
TdbCatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
if (gotalarm) {
-   tdb_debug(tdb, 0, tdb_chainlock_with_timeout_internal: alarm 
(%u) timed out for key %s in tdb %s\n,
-   timeout, key.dptr, tdb-name );
+   tdb-log_fn(tdb, 0, tdb_chainlock_with_timeout_internal: 
alarm (%u) timed out for key %s in tdb %s\n,
+   timeout, key.dptr, tdb-name);
/* TODO: If we time out waiting for a lock, it might
 * be nice to use F_GETLK to get the pid of the
 * process currently holding the lock and print that
@@ -492,8 +492,8 @@
}
break;
default:
-   tdb_debug(tdb, 0,Unknown tdb_pack format %c in %s\n, 
-c, fmt);
+   tdb-log_fn(tdb, 0,Unknown tdb_pack format %c in %s\n, 
+   c, fmt);
len = 0;
break;
}
@@ -507,8 +507,8 @@
 
va_end(ap);
 
-   tdb_debug(tdb, 18,tdb_pack(%s, %d) - %d\n, 
-fmt0, bufsize0, (int)PTR_DIFF(buf, buf0));
+   tdb-log_fn(tdb, 18,tdb_pack(%s, %d) - %d\n, 
+   fmt0, bufsize0, (int)PTR_DIFF(buf, buf0));

return PTR_DIFF(buf, buf0);
 }
@@ -599,7 +599,7 @@
memcpy(*b, buf+4, *i);
break;

svn commit: samba r2239 - in branches/SAMBA_3_0/source/tdb: .

2004-09-07 Thread jmcd
Author: jmcd
Date: 2004-09-07 13:51:03 + (Tue, 07 Sep 2004)
New Revision: 2239

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/tdbrev=2239nolog=1

Log:
Fixup formatting errors in TDB_LOG calls.  Add printf attribute support to 
tdb log functions.

Modified:
   branches/SAMBA_3_0/source/tdb/tdb.c
   branches/SAMBA_3_0/source/tdb/tdb.h


Changeset:
Modified: branches/SAMBA_3_0/source/tdb/tdb.c
===
--- branches/SAMBA_3_0/source/tdb/tdb.c 2004-09-07 13:44:49 UTC (rev 2238)
+++ branches/SAMBA_3_0/source/tdb/tdb.c 2004-09-07 13:51:03 UTC (rev 2239)
@@ -276,7 +276,7 @@
if (tdb-locked[list+1].count == 0) {
if (!tdb-read_only  tdb-header.rwlocks) {
if (tdb_spinlock(tdb, list, ltype)) {
-   TDB_LOG((tdb, 0, tdb_lock spinlock failed on list 
ltype=%d\n, 
+   TDB_LOG((tdb, 0, tdb_lock spinlock failed on list %d 
ltype=%d\n, 
   list, ltype));
return -1;
}

Modified: branches/SAMBA_3_0/source/tdb/tdb.h
===
--- branches/SAMBA_3_0/source/tdb/tdb.h 2004-09-07 13:44:49 UTC (rev 2238)
+++ branches/SAMBA_3_0/source/tdb/tdb.h 2004-09-07 13:51:03 UTC (rev 2239)
@@ -31,6 +31,9 @@
 extern C {
 #endif
 
+#ifndef PRINTF_ATTRIBUTE
+#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
+#endif
 
 /* flags to tdb_store() */
 #define TDB_REPLACE 1
@@ -101,7 +104,7 @@
struct tdb_context *next; /* all tdbs to avoid multiple opens */
dev_t device;   /* uniquely identifies this tdb */
ino_t inode;/* uniquely identifies this tdb */
-   void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...); /* 
logging function */
+   void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...) 
PRINTF_ATTRIBUTE(3,4); /* logging function */
u32 (*hash_fn)(TDB_DATA *key);
int open_flags; /* flags used in the open - needed by reopen */
 } TDB_CONTEXT;



svn commit: samba r2240 - in trunk/source/tdb: .

2004-09-07 Thread jmcd
Author: jmcd
Date: 2004-09-07 13:59:32 + (Tue, 07 Sep 2004)
New Revision: 2240

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/source/tdbrev=2240nolog=1

Log:
merge from 3.0: fixup TDB_LOG formats and add printf attribute support

Modified:
   trunk/source/tdb/tdb.c
   trunk/source/tdb/tdb.h


Changeset:
Modified: trunk/source/tdb/tdb.c
===
--- trunk/source/tdb/tdb.c  2004-09-07 13:51:03 UTC (rev 2239)
+++ trunk/source/tdb/tdb.c  2004-09-07 13:59:32 UTC (rev 2240)
@@ -276,7 +276,7 @@
if (tdb-locked[list+1].count == 0) {
if (!tdb-read_only  tdb-header.rwlocks) {
if (tdb_spinlock(tdb, list, ltype)) {
-   TDB_LOG((tdb, 0, tdb_lock spinlock failed on list 
ltype=%d\n, 
+   TDB_LOG((tdb, 0, tdb_lock spinlock failed on list %d 
ltype=%d\n, 
   list, ltype));
return -1;
}

Modified: trunk/source/tdb/tdb.h
===
--- trunk/source/tdb/tdb.h  2004-09-07 13:51:03 UTC (rev 2239)
+++ trunk/source/tdb/tdb.h  2004-09-07 13:59:32 UTC (rev 2240)
@@ -31,6 +31,9 @@
 extern C {
 #endif
 
+#ifndef PRINTF_ATTRIBUTE
+#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
+#endif
 
 /* flags to tdb_store() */
 #define TDB_REPLACE 1
@@ -101,7 +104,7 @@
struct tdb_context *next; /* all tdbs to avoid multiple opens */
dev_t device;   /* uniquely identifies this tdb */
ino_t inode;/* uniquely identifies this tdb */
-   void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...); /* 
logging function */
+   void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...) 
PRINTF_ATTRIBUTE(3,4); /* logging function */
u32 (*hash_fn)(TDB_DATA *key);
int open_flags; /* flags used in the open - needed by reopen */
 } TDB_CONTEXT;



svn commit: samba r2241 - in trunk/source: client include lib modules nmbd nsswitch printing rpc_parse rpc_server smbd utils web

2004-09-07 Thread vlendec
Author: vlendec
Date: 2004-09-07 16:42:09 + (Tue, 07 Sep 2004)
New Revision: 2241

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/sourcerev=2241nolog=1

Log:
Merge some (to me) obvious stuff from 3_0 to trunk. At least trunk still
compiles for me.

Volker

Added:
   trunk/source/modules/vfs_full_audit.c
Modified:
   trunk/source/client/mount.cifs.c
   trunk/source/include/libsmbclient.h
   trunk/source/include/rpc_samr.h
   trunk/source/include/safe_string.h
   trunk/source/include/vfs.h
   trunk/source/lib/debug.c
   trunk/source/nmbd/nmbd_winsserver.c
   trunk/source/nsswitch/winbindd_pam.c
   trunk/source/printing/nt_printing.c
   trunk/source/rpc_parse/parse_net.c
   trunk/source/rpc_parse/parse_samr.c
   trunk/source/rpc_server/srv_spoolss_nt.c
   trunk/source/smbd/chgpasswd.c
   trunk/source/utils/net_groupmap.c
   trunk/source/web/cgi.c


Changeset:
Sorry, the patch is too large (2998 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/sourcerev=2241nolog=1


svn commit: samba-web r318 - in trunk/support: .

2004-09-07 Thread deryck
Author: deryck
Date: 2004-09-07 20:48:54 + (Tue, 07 Sep 2004)
New Revision: 318

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/supportrev=318nolog=1

Log:

Replacing support provider info that had been removed.

--deryck

Modified:
   trunk/support/colombia.html


Changeset:
Modified: trunk/support/colombia.html
===
--- trunk/support/colombia.html 2004-09-07 03:36:36 UTC (rev 317)
+++ trunk/support/colombia.html 2004-09-07 20:48:54 UTC (rev 318)
@@ -18,6 +18,19 @@
 /small/pre
 
 
+!-- Updated: 07 September 2004 --
+hr /
+h3Bogota, Medellin, Cali/h3
+presmall
+SEAQ SERVICIOS CIA LTDA
+
+Tels:  (571) 655 98 00 / (571) 691 89 57
+Address:   Cra 16 # 76 - 42 Of 507 Bogota, Colombia
+Homepage: a href=http://www.seaq.com.co/;www.seaq.com.co/a
+email: a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a
+/small/pre
+
+
 !-- Updated: 19 May 2004 --
 hr /
 h3Barranquilla/h3



svn commit: samba r2242 - in branches/SAMBA_4_0/source/include: .

2004-09-07 Thread tridge
Author: tridge
Date: 2004-09-07 22:02:44 + (Tue, 07 Sep 2004)
New Revision: 2242

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/includerev=2242nolog=1

Log:
some older versions of gcc don't properly handle the
PRINTF_ATTRIBUTE() format checking magic, so only enable it for gcc
versions = 3.0


Modified:
   branches/SAMBA_4_0/source/include/includes.h


Changeset:
Modified: branches/SAMBA_4_0/source/include/includes.h
===
--- branches/SAMBA_4_0/source/include/includes.h2004-09-07 16:42:09 UTC (rev 
2241)
+++ branches/SAMBA_4_0/source/include/includes.h2004-09-07 22:02:44 UTC (rev 
2242)
@@ -53,10 +53,11 @@
 #define PRINTCAP_NAME /etc/printcap
 #endif
 
-#ifdef __GNUC__
+#if (__GNUC__ = 3)
 /** Use gcc attribute to check printf fns.  a1 is the 1-based index of
  * the parameter containing the format, and a2 the index of the first
- * argument.  **/
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
 #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
 #else
 #define PRINTF_ATTRIBUTE(a1, a2)



svn commit: samba r2243 - in branches/SAMBA_4_0/source/scripting/swig: .

2004-09-07 Thread tpot
Author: tpot
Date: 2004-09-07 23:12:29 + (Tue, 07 Sep 2004)
New Revision: 2243

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/scripting/swigrev=2243nolog=1

Log:
Include definition for PRINTF_ATTRIBUTE in Python tdb wrapper.

Modified:
   branches/SAMBA_4_0/source/scripting/swig/tdb.i


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/tdb.i
===
--- branches/SAMBA_4_0/source/scripting/swig/tdb.i  2004-09-07 22:02:44 UTC (rev 
2242)
+++ branches/SAMBA_4_0/source/scripting/swig/tdb.i  2004-09-07 23:12:29 UTC (rev 
2243)
@@ -45,6 +45,16 @@
 typedef int SIG_ATOMIC_T;
 #endif
 
+#if (__GNUC__ = 3)
+/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
+ * the parameter containing the format, and a2 the index of the first
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
+#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
+#else
+#define PRINTF_ATTRIBUTE(a1, a2)
+#endif
+
 /* Include tdb headers */
 
 #include lib/tdb/include/tdb.h



svn commit: samba r2244 - in trunk/source: .

2004-09-07 Thread tpot
Author: tpot
Date: 2004-09-07 23:16:58 + (Tue, 07 Sep 2004)
New Revision: 2244

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/sourcerev=2244nolog=1

Log:
Fix typo in comment.

Modified:
   trunk/source/configure.in


Changeset:
Modified: trunk/source/configure.in
===
--- trunk/source/configure.in   2004-09-07 23:12:29 UTC (rev 2243)
+++ trunk/source/configure.in   2004-09-07 23:16:58 UTC (rev 2244)
@@ -4215,7 +4215,7 @@
 AC_SUBST(WINBIND_NSS_EXTRA_OBJS)
 AC_SUBST(WINBIND_NSS_EXTRA_LIBS)
 
-# Check the setting of --with-winbindd
+# Check the setting of --with-winbind
 
 AC_ARG_WITH(winbind,
 [  --with-winbind  Build winbind (default, if supported by OS)],



svn commit: samba r2245 - in branches/SAMBA_3_0/source: .

2004-09-07 Thread tpot
Author: tpot
Date: 2004-09-07 23:22:09 + (Tue, 07 Sep 2004)
New Revision: 2245

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/sourcerev=2245nolog=1

Log:
Typo fix from trunk.

Modified:
   branches/SAMBA_3_0/source/configure.in


Changeset:
Modified: branches/SAMBA_3_0/source/configure.in
===
--- branches/SAMBA_3_0/source/configure.in  2004-09-07 23:16:58 UTC (rev 2244)
+++ branches/SAMBA_3_0/source/configure.in  2004-09-07 23:22:09 UTC (rev 2245)
@@ -1216,7 +1216,7 @@
if test $ac_cv_prog_cc_Ae = yes; then
BLDSHARED=true
SHLD=/usr/bin/ld
-   LDSHFLAGS=-B symbolic -b -z
+   LDSHFLAGS=-b -Wl,-B,symbolic,-b,-z
SONAMEFLAG=+h 
PICFLAGS=+z
elif test ${GCC} = yes; then
@@ -4236,7 +4236,7 @@
 AC_SUBST(WINBIND_NSS_EXTRA_OBJS)
 AC_SUBST(WINBIND_NSS_EXTRA_LIBS)
 
-# Check the setting of --with-winbindd
+# Check the setting of --with-winbind
 
 AC_ARG_WITH(winbind,
 [  --with-winbind  Build winbind (default, if supported by OS)],



svn commit: samba r2246 - branches/SAMBA_3_0/source/include trunk/source trunk/source/include

2004-09-07 Thread tpot
Author: tpot
Date: 2004-09-07 23:30:27 + (Tue, 07 Sep 2004)
New Revision: 2246

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/rev=2246nolog=1

Log:
Some good fixes for HPUX from JBravo on #samba-technical:

  - Fix linker options so that stuff actually builds (oops - part of this
commit was accidentally made in -r2245)

  - Add some preprocessor magic to avoid warnings being printed for every
single C file being compiled.  This was due to a bug in the HPUX system
header files.

This should make the HPUX build farm machine build again.

Modified:
   branches/SAMBA_3_0/source/include/includes.h
   trunk/source/configure.in
   trunk/source/include/includes.h


Changeset:
Modified: branches/SAMBA_3_0/source/include/includes.h
===
--- branches/SAMBA_3_0/source/include/includes.h2004-09-07 23:22:09 UTC (rev 
2245)
+++ branches/SAMBA_3_0/source/include/includes.h2004-09-07 23:30:27 UTC (rev 
2246)
@@ -309,6 +309,19 @@
 #endif
 
 #ifdef HAVE_SHADOW_H
+/*
+ * HP-UX 11.X has TCP_NODELAY and TCP_MAXSEG defined in netinet/tcp.h which
+ * was included above.  However rpc/rpc.h includes sys/xti.h which defines
+ * them again without checking if they already exsist.  This generates
+ * two Redefinition of macro warnings for every single .c file that is
+ * compiled.
+ */
+#if defined(HPUX)  defined(TCP_NODELAY)
+#undef TCP_NODELAY
+#endif
+#if defined(HPUX)  defined(TCP_MAXSEG)
+#undef TCP_MAXSEG
+#endif
 #include shadow.h
 #endif
 
@@ -361,6 +374,19 @@
 #if defined(HAVE_SYS_SECURITY_H)  defined(HAVE_RPC_AUTH_ERROR_CONFLICT)
 #undef AUTH_ERROR
 #endif
+/*
+ * HP-UX 11.X has TCP_NODELAY and TCP_MAXSEG defined in netinet/tcp.h which
+ * was included above.  However rpc/rpc.h includes sys/xti.h which defines
+ * them again without checking if they already exsist.  This generates
+ * two Redefinition of macro warnings for every single .c file that is
+ * compiled.
+ */
+#if defined(HPUX)  defined(TCP_NODELAY)
+#undef TCP_NODELAY
+#endif
+#if defined(HPUX)  defined(TCP_MAXSEG)
+#undef TCP_MAXSEG
+#endif
 #include rpc/rpc.h
 #endif
 
@@ -373,6 +399,19 @@
 #include rpcsvc/ypclnt.h
 #endif
 #if defined(HAVE_RPCSVC_YP_PROT_H)
+/*
+ * HP-UX 11.X has TCP_NODELAY and TCP_MAXSEG defined in netinet/tcp.h which
+ * was included above.  However rpc/rpc.h includes sys/xti.h which defines
+ * them again without checking if they already exsist.  This generates
+ * two Redefinition of macro warnings for every single .c file that is
+ * compiled.
+ */
+#if defined(HPUX)  defined(TCP_NODELAY)
+#undef TCP_NODELAY
+#endif
+#if defined(HPUX)  defined(TCP_MAXSEG)
+#undef TCP_MAXSEG
+#endif
 #include rpcsvc/yp_prot.h
 #endif
 #endif /* HAVE_NETGROUP */

Modified: trunk/source/configure.in
===
--- trunk/source/configure.in   2004-09-07 23:22:09 UTC (rev 2245)
+++ trunk/source/configure.in   2004-09-07 23:30:27 UTC (rev 2246)
@@ -1217,7 +1217,7 @@
if test $ac_cv_prog_cc_Ae = yes; then
BLDSHARED=true
SHLD=/usr/bin/ld
-   LDSHFLAGS=-B symbolic -b -z
+   LDSHFLAGS=-b -Wl,-B,symbolic,-b,-z
SONAMEFLAG=+h 
PICFLAGS=+z
elif test ${GCC} = yes; then

Modified: trunk/source/include/includes.h
===
--- trunk/source/include/includes.h 2004-09-07 23:22:09 UTC (rev 2245)
+++ trunk/source/include/includes.h 2004-09-07 23:30:27 UTC (rev 2246)
@@ -309,6 +309,19 @@
 #endif
 
 #ifdef HAVE_SHADOW_H
+/*
+ * HP-UX 11.X has TCP_NODELAY and TCP_MAXSEG defined in netinet/tcp.h which
+ * was included above.  However rpc/rpc.h includes sys/xti.h which defines
+ * them again without checking if they already exsist.  This generates
+ * two Redefinition of macro warnings for every single .c file that is
+ * compiled.
+ */
+#if defined(HPUX)  defined(TCP_NODELAY)
+#undef TCP_NODELAY
+#endif
+#if defined(HPUX)  defined(TCP_MAXSEG)
+#undef TCP_MAXSEG
+#endif
 #include shadow.h
 #endif
 
@@ -361,6 +374,19 @@
 #if defined(HAVE_SYS_SECURITY_H)  defined(HAVE_RPC_AUTH_ERROR_CONFLICT)
 #undef AUTH_ERROR
 #endif
+/*
+ * HP-UX 11.X has TCP_NODELAY and TCP_MAXSEG defined in netinet/tcp.h which
+ * was included above.  However rpc/rpc.h includes sys/xti.h which defines
+ * them again without checking if they already exsist.  This generates
+ * two Redefinition of macro warnings for every single .c file that is
+ * compiled.
+ */
+#if defined(HPUX)  defined(TCP_NODELAY)
+#undef TCP_NODELAY
+#endif
+#if defined(HPUX)  defined(TCP_MAXSEG)
+#undef TCP_MAXSEG
+#endif
 #include rpc/rpc.h
 #endif
 
@@ -373,6 +399,19 @@
 #include rpcsvc/ypclnt.h
 #endif
 #if defined(HAVE_RPCSVC_YP_PROT_H)
+/*
+ * HP-UX 11.X has TCP_NODELAY 

svn commit: samba r2247 - in branches/SAMBA_4_0/source: libcli libcli/raw librpc/ndr librpc/rpc ntvfs/simple param rpc_server rpc_server/netlogon rpc_server/samr smb_server

2004-09-07 Thread tpot
Author: tpot
Date: 2004-09-08 00:00:56 + (Wed, 08 Sep 2004)
New Revision: 2247

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2247nolog=1

Log:
talloc_destroy - talloc_free

Modified:
   branches/SAMBA_4_0/source/libcli/cliconnect.c
   branches/SAMBA_4_0/source/libcli/raw/clitransport.c
   branches/SAMBA_4_0/source/libcli/raw/clitree.c
   branches/SAMBA_4_0/source/librpc/ndr/ndr.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_smb.c
   branches/SAMBA_4_0/source/ntvfs/simple/vfs_simple.c
   branches/SAMBA_4_0/source/param/loadparm.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
   branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
   branches/SAMBA_4_0/source/rpc_server/samr/dcesrv_samr.c
   branches/SAMBA_4_0/source/smb_server/smb_server.c


Changeset:
Sorry, the patch is too large (333 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2247nolog=1


svn commit: samba r2248 - branches/SAMBA_3_0/source/include branches/SAMBA_3_0/source/tdb trunk/source/include trunk/source/tdb

2004-09-07 Thread tpot
Author: tpot
Date: 2004-09-08 02:48:27 + (Wed, 08 Sep 2004)
New Revision: 2248

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/rev=2248nolog=1

Log:
Merge of tridge's PRINTF_ATTRIBUTE fixes from samba4.

Modified:
   branches/SAMBA_3_0/source/include/includes.h
   branches/SAMBA_3_0/source/tdb/tdb.h
   trunk/source/include/includes.h
   trunk/source/tdb/tdb.h


Changeset:
Modified: branches/SAMBA_3_0/source/include/includes.h
===
--- branches/SAMBA_3_0/source/include/includes.h2004-09-08 00:00:56 UTC (rev 
2247)
+++ branches/SAMBA_3_0/source/include/includes.h2004-09-08 02:48:27 UTC (rev 
2248)
@@ -45,10 +45,11 @@
 #undef HAVE_TERMIOS_H
 #endif
 
-#ifdef __GNUC__
+#if (__GNUC__ = 3)
 /** Use gcc attribute to check printf fns.  a1 is the 1-based index of
  * the parameter containing the format, and a2 the index of the first
- * argument.  **/
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
 #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
 #else
 #define PRINTF_ATTRIBUTE(a1, a2)

Modified: branches/SAMBA_3_0/source/tdb/tdb.h
===
--- branches/SAMBA_3_0/source/tdb/tdb.h 2004-09-08 00:00:56 UTC (rev 2247)
+++ branches/SAMBA_3_0/source/tdb/tdb.h 2004-09-08 02:48:27 UTC (rev 2248)
@@ -32,8 +32,16 @@
 #endif
 
 #ifndef PRINTF_ATTRIBUTE
+/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
+ * the parameter containing the format, and a2 the index of the first
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
+#if (__GNUC__ = 3)
 #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
+#else
+#define PRINTF_ATTRIBUTE(a1, a2)
 #endif
+#endif
 
 /* flags to tdb_store() */
 #define TDB_REPLACE 1

Modified: trunk/source/include/includes.h
===
--- trunk/source/include/includes.h 2004-09-08 00:00:56 UTC (rev 2247)
+++ trunk/source/include/includes.h 2004-09-08 02:48:27 UTC (rev 2248)
@@ -45,10 +45,11 @@
 #undef HAVE_TERMIOS_H
 #endif
 
-#ifdef __GNUC__
+#if (__GNUC__ = 3)
 /** Use gcc attribute to check printf fns.  a1 is the 1-based index of
  * the parameter containing the format, and a2 the index of the first
- * argument.  **/
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
 #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
 #else
 #define PRINTF_ATTRIBUTE(a1, a2)

Modified: trunk/source/tdb/tdb.h
===
--- trunk/source/tdb/tdb.h  2004-09-08 00:00:56 UTC (rev 2247)
+++ trunk/source/tdb/tdb.h  2004-09-08 02:48:27 UTC (rev 2248)
@@ -32,8 +32,16 @@
 #endif
 
 #ifndef PRINTF_ATTRIBUTE
+#if (__GNUC__ = 3)
+/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
+ * the parameter containing the format, and a2 the index of the first
+ * argument. Note that some gcc 2.x versions don't handle this
+ * properly **/
 #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
+#else
+#define PRINTF_ATTRIBUTE(a1, a2)
 #endif
+#endif
 
 /* flags to tdb_store() */
 #define TDB_REPLACE 1



svn commit: samba r2249 - in branches/SAMBA_4_0/source: ntvfs ntvfs/cifs ntvfs/ipc ntvfs/nbench ntvfs/posix ntvfs/print ntvfs/simple smb_server

2004-09-07 Thread tridge
Author: tridge
Date: 2004-09-08 05:39:06 + (Wed, 08 Sep 2004)
New Revision: 2249

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2249nolog=1

Log:
got rid of some more mem_ctx elements in structures
Modified:
   branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c
   branches/SAMBA_4_0/source/ntvfs/ipc/ipc_rap.c
   branches/SAMBA_4_0/source/ntvfs/ipc/rap_server.c
   branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c
   branches/SAMBA_4_0/source/ntvfs/nbench/vfs_nbench.c
   branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c
   branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c
   branches/SAMBA_4_0/source/ntvfs/print/vfs_print.c
   branches/SAMBA_4_0/source/ntvfs/simple/svfs_util.c
   branches/SAMBA_4_0/source/ntvfs/simple/vfs_simple.c
   branches/SAMBA_4_0/source/smb_server/conn.c
   branches/SAMBA_4_0/source/smb_server/connection.c
   branches/SAMBA_4_0/source/smb_server/negprot.c
   branches/SAMBA_4_0/source/smb_server/nttrans.c
   branches/SAMBA_4_0/source/smb_server/password.c
   branches/SAMBA_4_0/source/smb_server/reply.c
   branches/SAMBA_4_0/source/smb_server/request.c
   branches/SAMBA_4_0/source/smb_server/search.c
   branches/SAMBA_4_0/source/smb_server/service.c
   branches/SAMBA_4_0/source/smb_server/sesssetup.c
   branches/SAMBA_4_0/source/smb_server/smb_server.c
   branches/SAMBA_4_0/source/smb_server/smb_server.h
   branches/SAMBA_4_0/source/smb_server/trans2.c


Changeset:
Sorry, the patch is too large (1048 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=2249nolog=1