Re: [Samba] Cannot cross-compile 3.0.20b from i686 to mipsel

2005-11-07 Thread Martin Zielinski

Alexander Skwar wrote:

Hi.

I'm trying to compile 3.0.20b on my i686 host to run on a
mipsel host. For this, I got a cross compile toolchain from
http://linkstationwiki.org/Projects/CrossToolchains. The
toolchain is installed at 
/usr/local/linkstation/gcc-3.3.5-glibc-2.3.2/mipsel-hdhlan-linux

I ran configure with the help of a little wrapper script:

version=gcc-3.4.4-glibc-2.3.5
#version=gcc-3.3.5-glibc-2.3.2


[...]


./configure --host=$target --target=$target \
--disable-cups --without-ldap --without-ads \
 make AR=mipsel-hdhlan-linux-ar CC=mipsel-hdhlan-linux-gcc\
 LD=mipsel-hdhlan-linux-ld NM=mipsel-hdhlan-linux-nm\
OBJDUMP=mipsel-hdhlan-linux-objdump

configure failed with this error message:

checking for open64... yes
checking for _open64... no
checking for __open64... yes
checking for creat64... yes
checking for prctl... yes
configure: error: cannot run test program while cross compiling
See `config.log' for more details.

[...]



What do I do now?

Hello Alexander,

these are quite normal messages when trying to cross-compile bigger 
projects.


Actually you'll find in the config.log, that the configure script tried 
to execute a programm it has recently build.

Running a mips binary on a i686 fails of course.

To fix it, you have either to hack the configure script or - better -
pre-set the variables the configure script wants to figure out.

On my arm plattform it looks like this:

export samba_cv_HAVE_MEMORY_KEYTAB=yes
export samba_cv_USE_SETEUID=no
...

Sometimes it's a bit tricky to find the right variables but searching 
the configure script for those cannot run test program ... is allways 
a good start.


Bye,

Martin

--
Martin Zielinski [EMAIL PROTECTED]
Software Development
SEH Computertechnik GmbH www.seh.de
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba clients and ADS

2005-11-07 Thread Roland Carlsson

Hi!

Refering to an older thread named Unknown auth type 
http://reader.li.ru/article/linux.samba/28004h.


I wonder if there are more people than I that have a great deal of 
problem with ADS (win2003 sp1 with all patches) and Samba clients.


Things like our scanner (running samba), MacOsX computers etc etc can't 
access the domain anymore. So I guess that there is a non-samba reason 
that our Samba-server don't work. The only thing I can see that  we have 
done to cause this problem is that we ran windowsupdate. I have read 
about the  updates but are not qualified to understand if anything is 
related to this problem.


The clients that doesn't  work is:
Toshiba e-studio 3511
Mac Os X 10.4.3

I also have problem with a Samba server trying to use authenticate users 
through the ADS and think that the problem could be related.


All devices that try to authenticate has not joined the domain.

I apreciate all ideas of what can cause this problem.

Thanks in advance
Roland Carlsson

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


Re: [Samba] winbind or netsamlogon_cache.tdb issue

2005-11-07 Thread Lionel Déruaz
 | Hello, we have tried the 3.0.21pre1 release.
 | Effectively the netsamlogon_cache file doesn't exist anymore.
 | However we keep on having similar trouble with the cache : some users
 | members of some AD group are seen as if they were not belonging to the
 | group. And it is ok if winbind is started without cache.

 You do know about the 'winbind cache time' option right ?
 It's set to 5 minutes by default IIRC.

Yes, we have configured it with 5 seconds value. Moreover we start winbind with
the option -n.
What we see is same some wbinfo -r requests gets in return the error message

Could not get groups for user xxx

And that no traffic is sent from the server to the AD server (and so, of course,
no answer).
The problem seems to be link to the behavior of wbinfo -r, or rather
wbinfo_get_usergroups( in particular the  winbindd_request_response command)

Do you agree ?

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


Re: [Samba] Windows refusing samba server

2005-11-07 Thread markus
Hi George, my machines are coming back since I've rebooted the machine. 
Some others don't. Because there is an unspecified interval of time 
between dying and reviving machines, I am sure it's a kerberos issue. 
But I don't have any idea where this error is located. I hope the 
machines are all coming back to productivity and stay at this point.


My samba is running as a domain member server using nss_ldap (openldap, 
cyrus_sasl) on a gentoo box. If someone notice the same problems: please 
post, I am not sure that the status quo will hold.


George schrieb:

I still have the same problem you have even after having done these things.
Try them anyway:
Stop the webclient service on the windows machines
There is a registry key change in the doco directory, try that
Check firewalls on the windows machines

Good luck with it. This is stopping me from upgrading our classrooms to XP,
looks like we will dump samba and Linux and install 2000 server for the
student files. Pity, the samba macros made life very easy with 98.

Mount Isa - Rodeo Capital of Australia
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
markus
Sent: Friday, 4 November 2005 11:36 PM
To: samba@lists.samba.org
Subject: [Samba] Windows refusing samba server

Hi, I have some issues with some windows machines (xp pro, 2003). It
sounds very weird, but some of my machines are loosing the connection to
my samba server. You can't see any machine browsing the network, it asks
for a password getting access to a samba share, which leads to a refused
connection. After this it asks never again for any password, just
refusing me. I can ping the samba server, but the client doesn't show
any shares, just talking about it could'nt find the specified host on
the network. The strange thing is, that everything worked very fine for 
months, since I encountered the first machine with these symptoms. A day 
later the next one. Than the servers, maybe earlier having these 
problems. And today another one.


I don't think that anyone encountered such strange and weird behaviour
on any windows machine. But every hint is very welcome.

Thanks
   Markus


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


Re: [Samba] Samba 3.0.20b in ADS mode with MIT realm trust problems

2005-11-07 Thread Matt Johnson

Anyone?

We've made no progress on this since the original email, 
unfortunately...


Matt

On Mon, 31 Oct 2005, Matt Johnson wrote:


Hi all,

We're having some issues getting Samba to work in the way we'd like it to in 
our domain infrastructure.


We have a real Windows domain WIN (WIN.DOC.IC.AC.UK) which is run on Windows 
2003 domain controllers. We also have an MIT Kerberos realm DOC.IC.AC.UK. A 
realm trust exists such that WIN.DOC.IC.AC.UK trusts DOC.IC.AC.UK for 
authentication, and users have appropriate Kerberos name mappings in the AD.


All of the core Windows domain/realm trust stuff seems to work; we can log in 
using the MIT Kerberos principal and get the right user account -- so this 
level of the setup is working fine.


We have a Samba 3.0.20b server running in ADS mode, I believe the following 
are the requisite config entries:


   security = ads
   realm = WIN.DOC.IC.AC.UK
   workgroup = WIN
   wins server = (our domain controllers)
   password server = *
   remote announce = (our domain controllers)/WIN
   nt acl support = yes
   encrypt passwords = yes
   lanman auth = no
   password level = 0
   wins support = no

...and it is a member server in WIN.DOC.IC.AC.UK. (net ads join stuff all 
done and working fine.)


Now, the problem itself:

Case 1: If we log into a WinXP SP2 client (a member workstation of the WIN 
domain) using the credentials stored in the AD for WIN, we can access shares 
on the Samba server. (All well and good.)


Case 2: If we log into the same WinXP client using the trusted realm 
credentials in DOC.IC.AC.UK, we can access shares hosted on real Windows 
servers. (So that should mean that we have the domain trust set up correctly 
as far as the AD is concerned.)


Case 3: If I log into a Unix machine and have credentials in DOC.IC.AC.UK and 
use smbclient -k to connect to a share on the Samba server, this works 
uniformly, 100% of the time.


Case 4: If we log into the same WinXP client using the trusted realm 
credentials in DOC.IC.AC.UK, we can only very rarely ( 1% of the time) access 
shares on the Samba server.


It seems to work rarely and non-deterministically! When it fails, it seems 
that either the client or the server is attempting to authenticate me using 
WIN.DOC.IC.AC.UK alone, which Samba barfs over.


(IP addresses / real hostnames redacted.)

[2005/10/31 11:18:40, 3] smbd/negprot.c:reply_nt1(337)
 using SPNEGO
[2005/10/31 11:18:40, 3] smbd/negprot.c:reply_negprot(559)
 Selected protocol NT LM 0.12
[2005/10/31 11:18:40, 3] smbd/process.c:process_smb(1114)
 Transaction 1 of length 240
[2005/10/31 11:18:40, 3] smbd/process.c:switch_message(900)
 switch message SMBsesssetupX (pid 23393) conn 0x0
[2005/10/31 11:18:40, 3] smbd/sec_ctx.c:set_sec_ctx(288)
 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X(751)
 wct=12 flg2=0xc807
[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(588)
 Doing spnego session setup
[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(619)
 NativeOS=[Windows 2002 Service Pack 2 2600] NativeLanMan=[Windows 2002 5.1] 
PrimaryDomain=[]

[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_spnego_negotiate(480)
 Got OID 1 3 6 1 4 1 311 2 2 10
[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_spnego_negotiate(483)
 Got secblob of size 40
[2005/10/31 11:18:40, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(62)
 Got NTLMSSP neg_flags=0xe2088297
[2005/10/31 11:18:40, 3] smbd/process.c:process_smb(1114)
 Transaction 2 of length 338
[2005/10/31 11:18:40, 3] smbd/process.c:switch_message(900)
 switch message SMBsesssetupX (pid 23393) conn 0x0
[2005/10/31 11:18:40, 3] smbd/sec_ctx.c:set_sec_ctx(288)
 setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X(751)
 wct=12 flg2=0xc807
[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(588)
 Doing spnego session setup
[2005/10/31 11:18:40, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(619)
 NativeOS=[Windows 2002 Service Pack 2 2600] NativeLanMan=[Windows 2002 5.1] 
PrimaryDomain=[]

[2005/10/31 11:18:40, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(606)
 Got user=[mwj] domain=[WIN] workstation=[CLIENT] len1=24 len2=24
[2005/10/31 11:18:40, 3] libads/ldap.c:ads_connect(285)
 Connected to LDAP server 146.169.x.x
[2005/10/31 11:18:40, 3] libads/ldap.c:ads_server_info(2514)
 got ldap server name [EMAIL PROTECTED], using bind path: 
dc=WIN,dc=DOC,dc=IC,dc=AC,dc=UK

[2005/10/31 11:18:40, 3] libsmb/cliconnect.c:cli_start_connection(1407)
 Connecting to host=DC
[2005/10/31 11:18:40, 3] lib/util_sock.c:open_socket_out(867)
 Connecting to 146.169.x.x at port 445
[2005/10/31 11:18:40, 3] rpc_parse/parse_lsa.c:lsa_io_sec_qos(181)
 lsa_io_sec_qos: length c does not match size 8
[2005/10/31 11:18:40, 3] auth/auth.c:check_ntlm_password(219)
 check_ntlm_password:  Checking password for unmapped user 
[EMAIL PROTECTED] with the new password interface

[Samba] quota problems with 3.0.20b

2005-11-07 Thread Wolf Wiegand
Hello,

we've encountered a problem when using quotas:

server side fs: xfs
samba version:  3.0.20b
client os:  Win2000

If an administrator tries to look at the quota settings from the W2k 
client (no service packs), samba runs into an endless loop. When doing
the same thing from a XP box, no problems occur. I've found a similar
problem here:
http://lists.samba.org/archive/samba-technical/2005-October/043313.html
but unfortunately no solution to it.

Any suggestions on how to work around this issue? Since the logfiles
become quite large when this error occures, I won't attach any to this
mail, but I can put them on a webserver, if desired.

Regards,

Wolf

-- 
Wie lautet das Zauberwort? - Bier!? (Dittsche)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Urgent Help

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] escreveu:
 Hi Team,

Hi Paul. :)


 I have a HP-UX System running on 10.20 Version.
 I want to install the compatible samba version 
 with my HP-UX.
 I have checked the latest available version 3.0.10, 
 but this support HP-UX 11.0 and above.

3.0.10 is not the latest available version, 3.0.20b is
the last version available. Anyway, you should consult
[1]old-versions directory in Samba FTP, probably you can find
more info and old version.

[1]http://us2.samba.org/samba/ftp/old-versions/


 Kindly help me to get the Samba Version which supports 10.20 
 Version.

If you search for Samba3 HP-UX 10.20 you will find some
interesting information about this topic. Looks like that it is
related with GCC, there is a nice [2][3]message with somebody
looking for GCC or a pre-compiled version of Samba (it is from
2003).

[2]http://gcc.gnu.org/ml/gcc/2003-06/msg01369.html
[3]http://gcc.gnu.org/ml/gcc/2003-06/msg01363.html


I only found Binary_Packages from Samba site to HP-UX 11
but I believe that you can compile Samba3 (latest version) in
HP-UX 10.20.

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb0gfCj65ZxU4gPQRAv/ZAKDMZjZYe0jAvqlLxH1Lv2dKrpM4CQCfX1zH
g+0z4I4apgQhYIP768O/SQM=
=Kdmp
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Guest printing issue using cups

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vaughan Roberts escreveu:
 Hi,
  
 I am running Samba.3.0.20b_1 on a FC4 box kernel-2.6_13.1 box 
 with a mixed set of Win2k, XP clients.
 I want to enable everyone to print to a local printer on the 
 Linux box as a guest.  The XP machines can do this, but my Win2k
 machine insists that I log in as a Samba user before it will enable
 me to print.  That's OK when I am logged into it (although
 annoying), as I know what to do, but others find this too difficult
 for them.
 I also suffer from the Can't become connected user! error messages, 
 though I seem to be able to connect and do what I need...

Have you tried to use disable spoolss = yes? I saw that you
are alreading use use client driver = yes, in some print servers in
our company we have to use the disable spoolss to solve a similar
problem.

Anyway, there are a couple of considerations to your smb.conf:

 Here are the relevant parts of my smb.conf file.
[...]
 [printers]
 comment = All Printers
 path = /var/spool/samba
 printable = Yes
 guest OK = Yes
 cups options = 
 browseable = No
  
 [LJ5MP]
 comment = Raw queue postscript laser printer
 path = /var/spool/samba
 read only = No
 guest only = Yes
 printable = Yes
 printer name = lj5mp
 use client driver = Yes
 share modes = No

If you check smb.conf manpage you'll find:

   guest only (S)
  If  this parameter is yes for a service, then only guest connec-
  tions to the service are permitted. This parameter will have  no
  effect if guest ok is not set for the service.

  See  the  section  below on  security for more information about
  this option.

  Default: guest only = no

You have guest only = Yes but you don't have guest ok.

And I didn't found which security directive you are using.


 Any suggestions as to why this might be happening?

Hope it helps, kind regards. :-)

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb0sSCj65ZxU4gPQRAt0HAJ49QuJ4pvMwIbVmsoNIIm1/OeCecACgil6n
PL3XWmx7nl0u1/xvqNn6iPI=
=olI8
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] How do I become a domain admin?

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Keightley escreveu:
 Just setup a new domain controller running Samba-3.0.20b.
 Using smbpasswd file (no LDAP).  
 How do I setup a group of users so they become domain administrators?
 
 I thought I just typed this: 
 
 % net groupmap modify ntgroup=Domain Admins unixgroup=ntadmin
 
 I am in group unix ntadmin, but I'm it doesn't seem to work.

Did you tried to set admin users in smb.conf?

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb0uSCj65ZxU4gPQRAkNzAKDAjYtUUCiRI2xDaRSiBxAl/XBUFACfYXQF
eqZEa+Tjqw2Cpkp6zNMhMyk=
=hp0/
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Change file owner

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luciano Andre Baramarchi escreveu:
 When I run smbstatus the Username logged still is administrator ...
 
 [EMAIL PROTECTED] samba]# smbstatus
 
 Samba version 3.0.10-1.4E
 PID Username  Group Machine
 ---
 29242   administrator  Domain Users  server01 (XXX.XXX.1.1)
 
 Now the message when I try changing owner is:
 
 Unable to set new owner to Test
 Access denied
 
 I think the system isn't understanding that the user is root ...

Looks like an uid problem. You are running an old version of
Samba (3.0.10), to have an admin user in versions until 3.0.12 you
have to set uid 0 to the user.

The smbstatus info show that you are in Domain Users group,
not in Domain Admins, it is a good idea to clean the admin users
that you created and set a new admin with uid/gid 0.

Best regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb0weCj65ZxU4gPQRAprrAJ430zfFEN/t1XyeZd7uMb0KsGowHwCeKyQb
TbN/YdXi8e5e0JCE+eNF5AE=
=57EA
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Understanding Documentation about BDC in HowTo Collection

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Gasch escreveu:
 hi listjohn,

Hi. :)


 i read in the documention about BDCs:

[...]

 To retrieve the domain SID from the PDC or an existing BDC and store it
 in the |secrets.tdb|, execute:
 
 |root# |*|net rpc getsid
 
 is this enough, because net getlocalsid gives
 SID of DOMAIN MYDOMBDC is s-1-5-21- which is not the same like the
 SID of MYDOM.
 net getlocalsid MYDOM gives the right SID on BDC.
 
 on PDC net getlocalsid and net getlocalsid MYDOM produces the same SID
 
 so should i also do net setlocalsid SID_OF_MYDOM on BDC or is it not
 wise to have 2 machines with the same SID on the network although
 they're linux???

PDC and BDC should have the same SID to work properly. The
getlocalsid and setlocalsid is tricky. :-)  After useing the 'net rpc
getsid', I usually stop the samba server, run the net setlocalsid
with the right SID and then start the samba server again. It works
when the net rpc fails. =)


 btw:|*
 i have a samba v3 setup like:
 
 PDC - LDAP master, with secondary slave LDAP server.
 BDC - LDAP slave server, with secondary master LDAP server.
 
 i think this is fine but i'm thinking about migrating to:
 PDC - LDAP master, with secondary slave LDAP server.
 BDC - LDAP master, with secondary slave LDAP server.
 
 what's zour opinion about switching the BDC to point its first ldap
 server to ldapmaster? both are in the same subnet.
 i'm just afraid of LDAP master failing and time outs on BDC side because
 it tries to connect to LDAP masterwell if BDC LDAP fails then i have
 timeout, too...right...so what's zour opinion?
 
 thx as usual :)

From Samba docs looks like that the best option is setup
the PDC with LDAP Master and BDC with LDAP Slave, if master fails,
slave could attend requests, the point of being a BDC is that you
can only read (no write), which is good for a LDAP slave. :)

But remember to test you setup, which means, turn off the
master to check if the slave (BDC) will work fine.

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb05zCj65ZxU4gPQRAnpAAKDEiS8gp6Q1dMB0TBaOGfiGYTjDmQCeKTEA
kD9jn/gctnV9UoMOPyZSmxg=
=7WkQ
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Linux Primary Domain Controller Authentication

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cynthia Jeness escreveu:
 I have setup my Linux server as a Primary Domain Controller using Samba
 3.   All other computers on the network run various versions of Windows
 from 95 to XP.   All computers are able to join my Samba domain and the
 user computers can log onto the network.   However, if they try to
 access a file resource on one of the Windows 2003 file servers, the
 authentication fails with System Error 1789.   

With they you mean all computers? Or some particular version?
AFAICT, Win95 does not have crypto passwords, which means that it is not
going to work properly.


 The Windows 2003 file
 server did successfully join my domain.I am not running Winbindd
 primarily because it was not part of the Samba packaging provided by
 Suse.   Is it necessary to run Winbindd in order to have the Windows
 2003 servers validate?

Looks like more a permission problem than a 2003 validation
problem. The idea behind winbindd is share the user list between
servers and, from your description, does not sounds like you need it,
althoght there is not enough information to be sure. :-)

Did you map users? Which version of Samba are you running? In
which MS Windows versions the problem occurs?


 Any suggestions would be greatly appreciated.

Hope it helps, kind regards.

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb09qCj65ZxU4gPQRAop7AKCf9H9A1CYeiNmoe656Y52w8GV0FQCgmcbt
3SW8mNYe0tnZwKSAXw9gw1o=
=KcOE
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Security=user half as fast as share. Why?

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] escreveu:
 I'm running Suse 9.2 (kernel 2.6.8-24) with Samba 3.0.20b
 
 When I use security=user, my read/write performance is less than half
 the peformance with security=share.  Why?  There are no other changes,
 but performance is never better than half the speed.  This happens with
 WinXP, Win2K and Win98 clients, so I don't think the client
 configuration is the problem.  Network is gigabit, with Intel Pro/1000
 adapters.

Did you setup the socket options?

security = share has five extra steps to check the user,
perhaps it could be a delay from the backend (LDAP or winbind).

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb0/rCj65ZxU4gPQRAsDZAKC3lQxAT5+HlI9gN0orAa/rz+ps7gCgmXX5
7JrytR3bYj6zCNvW7aOxEy0=
=MGIL
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Add machine, user, group, etc. scripts

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Barnes escreveu:
 Can anyone tell me exactly how the various add machine/user/group/etc/
 scripts work in Samba?  I know how to set them up in smb.conf.  That's
 not problem.  But how are they invoked?  Some use Samba specific
 variables like %u and %m.  How do you run a script manually to use these
 variables?

Michael, I'm afraid that I don't understand your question
quite well, do you want to understand the invoke at source level?
Did you try to take a look to samba source to check that?


 If you have an add user script and a non-user tries to log in, does it
 create an account for him?

Yep. :)


 If you have an add machine script and the user attempts to log in from a
 previously non-registered machine, does it automatically add that
 machine to the mix?

Yep! :)


 Thanks for ideas,

You are very welcome, best regards.

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb1CLCj65ZxU4gPQRAmuEAKCk6UWEevjdux0rZ7AJllQUbiIpsACcD32b
Bdn15w4+5LuyGb2WrlpmsiM=
=NNNM
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Libsmbclient.c changes in 3.0.21-pre??

2005-11-07 Thread Henrik Zagerholm

Hi all!

I'm using an interface module towards the libsmbclient.c/h  and I've  
noticed that I get weird results regarding filecreation and  
accesstimes after upgrading to latest libsmbclient.


Can someone confirm that there are changes in this code regarding the  
File::Stat methods.


Regards,
Henrik

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


[Samba] Samba doesnt refresh explorer window

2005-11-07 Thread Christian Volk
Hi,
I have buildet a small mini-samba distri with only the nessesary components
for a shared network drive on an embedded Linuxbox.

When i connect with my Windowsbox to the samba server using an unc-path,
changes are only displayed after a manual refresh.
Doing the same on a Windows connected netdrive shows the changes
immediately.
Trying this on an actual Sambadistri on Fedora Core 3 and 4 Distri,
refreshing is also working on unc-path connections.

Which component of the samba package is responsible for refreshing?
I am using samba 3.0.20b.

 

Regards from Germany

Christian Volk  

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


Re: [Samba] why samba doesn't work ?

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vorms escreveu:
 Hello,
 I try to install Sambo on a Dreambox (Linux 2.6 based on a small PowerPC)
 I place in attachement the log file 
 Please help me !
 Thank you very much for your help

It is a quite old message, anyway... :)

You didn't sent any files attached (or they didn't arrive).
And you shouldn't attach it, if you still need help, please send a
message with the information in the mail body. :)

And add relevant informations like what are you trying to
do, samba version, kernel version, and related stuff.

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb1lkCj65ZxU4gPQRAjt+AJ9iC5mfxtPhGXPCwa8i9UB6ToXGiwCeNok0
bAJRKVL+Yqd7/cKHn22UrMo=
=vv4a
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] problems with clients privileges

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

nik600 hotmail escreveu:
 hi
 i am experiencing some problem with the configuring of samba as a PDC in a
 Windows network, ive configured samba as PDC, created users, set there
 password with smbpasswd and mapped unixgroup to nt group as follows:
 
 System Operators (S-1-5-32-549) - -1
 Domain Users (S-1-5-21-3614578222-3141096634 -3044101766-513) - users
 Replicators (S-1-5-32-552) - -1
 Guests (S-1-5-32-546) - -1
 Power Users (S-1-5-32-547) - users
 Print Operators (S-1-5-32-550) - -1
 Administrators (S-1-5-32-544) - -1
 Domain Admins (S-1-5-21-3614578222-3141096634-3044101766-512) - users
 Domain Guests (S-1-5-21-3614578222-3141096634-3044101766-514) - -1
 Account Operators (S-1-5-32-548) - -1
 Backup Operators (S-1-5-32-551) - -1
 Users (S-1-5-32-545) - -1
 
 on the windows client i've set in the local group Power Users the domain
 group Domain Users

Please, don't do that. Use different groups for Domain Users,
Domain Admins and Power Users. :)


 the problem is that the user can log-in but they are extremely limited, they
 can't set their home page, or set preferences in I.E., or preferences
 regarding files (show hidden files...)

Is it a client side problem, isn't it? Are you using GPO? Or
Local Security policies?


 the only solution i've guessed at the moment is to add Domain Users samba
 group to Administrators local group...it works! but it let the user to
 login as a local administrator! and i dont' want it! ;-)
 
 can you suggest me some controls to do?
 
 the server runs samba 3.0.10 on a slackware 10.1 kernel 2.6.12

Samba 3.0.10 handles the admin user in a different way,
anyway, you don't want all your users to be Domain Admins. :-)

On our network, if I don't use Local Policies, the user
is able to change a lot of things in his own environment in Win2k.


 thanks in advance

You are welcome. Best regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb1usCj65ZxU4gPQRAt/vAJ9d0PCnwcoBAK7QFcdvleK2gpjl8QCeJPPM
5dH/YLVcNP9Ylu468o76MD0=
=PMWu
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] NT_STATUS_ACCESS_DENIED

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Roland Carlsson escreveu:
 Hi!
 After an upgrade of our Suse installation (9.2 to 10) Samba 
 doesn't work any more.
 I have come so far that wbinfo and getent works perfectly but 
 when trying to connect with smbclient i get the following:
 AQMLIN03:~ # smbclient //AQMLIN03/gemensam -U root
 Password:
 Domain=[ALFA-MOVING] OS=[Unix] Server=[Samba 3.0.20-4-SUSE]
 tree connect failed: NT_STATUS_ACCESS_DENIED
 
 log.smbd says:
 [2005/10/30 21:36:54, 0] auth/auth_util.c:make_server_info_info3(1173)
  make_server_info_info3: pdb_init_sam failed!

In the past it was a bug for some specific release, but looks
like you are running 3.0.20.


 From windows-clients (win2003 terminal server) the log get this:
 [2005/10/30 18:59:33, 1] smbd/sesssetup.c:reply_spnego_kerberos(263)
  Username ALFA-MOVING\chbo1 is invalid on this system
 
 I have tried to look in the krb5.log and nsswitch.conf but can't 
 find anything strange there.
 
 Any ideas where to look?
 
 Some of the basic facts:
 Suse Linux 10.0
 Samba 3.0.20
 Microsoft Active Directory Server 2003 sp1

If you go back to older version, or if you compile samba
the problem persists? It could be a bug in suse package. Did you
try to contact suse samba team? :)

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb1/jCj65ZxU4gPQRAhrvAJ933Ghe57t/4kMotdvdySU0Cr5V0wCgnorb
KTS/NvQLJCNvINKrTVtpr04=
=YtaM
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Error while executing smbd in unix x86 workstation

2005-11-07 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alan Tan escreveu:
 Hi All,
 I've install Unix version 9.0 in my pc (intel workstation). I've 
 configure network connection, file share, samba and etc.
  
 The samba package are samba-3.0.21pre1-1-noads-sunos5.9-sparc.pkg.gz. 
 I encountered the following error while executing smbd. Please advise.
  
 Error:
 ./smbd: syntax error at line1: '(' unexpected

Hmmm, strange. It looks like a shell script error, in
other words, there is a '(' that shouldn't be there. You could
report a bug to Samba team or try to check out what is going on
and send a patch. :)


 Thanks in advance.

You are welcome, kind regards.

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb2CACj65ZxU4gPQRAgS7AJ9vj+RtCbYhyu23w3s7MsEmlxXpHQCgruyu
DgrQU+xKD5U2DJP8R4V1LsM=
=jxoL
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Linux Primary Domain Controller Authentication

2005-11-07 Thread Cynthia Jeness

Felipe Augusto van de Wiel wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cynthia Jeness escreveu:
 


I have setup my Linux server as a Primary Domain Controller using Samba
3.   All other computers on the network run various versions of Windows
from 95 to XP.   All computers are able to join my Samba domain and the
user computers can log onto the network.   However, if they try to
access a file resource on one of the Windows 2003 file servers, the
authentication fails with System Error 1789.   
   



With they you mean all computers? Or some particular version?
AFAICT, Win95 does not have crypto passwords, which means that it is not
going to work properly.

 

Windows users computers (all versions 98, 2000, XP Pro) can access all 
shared resources on the Linux server.   However, if one of these Windows 
user computers attempts to share a resource on the Windows 2003 File 
Server (which did successfully join the domain), then error 1789 is 
returned.   Encryption is turned on and the passwords are stored on 
smbpasswd.


 


The Windows 2003 file
server did successfully join my domain.I am not running Winbindd
primarily because it was not part of the Samba packaging provided by
Suse.   Is it necessary to run Winbindd in order to have the Windows
2003 servers validate?
   



Looks like more a permission problem than a 2003 validation
problem. The idea behind winbindd is share the user list between
servers and, from your description, does not sounds like you need it,
althoght there is not enough information to be sure. :-)

Did you map users? Which version of Samba are you running? In
which MS Windows versions the problem occurs?


 


Any suggestions would be greatly appreciated.
   



Hope it helps, kind regards.

 



We added the users as regular users on the Linux computer and to the 
smbpasswd file.   Except for Administrator which I did map to root, the 
user name on the Windows end user computer is the same as the user name 
on the Linux Samba Primary Domain Controller.   We are using Samba 
version 3.0.   The latest available from Suse.  If I make the Windows 
2003 computer a member of a workgroup and add the users directly to the 
Windows 2003 computer, then the users can access resources on the 
Windows 2003 file server.   The error (1789) indicates that the Windows 
2003 Server cannot verify the user name and password against the primary 
domain controller; i.e., the Linux box.   As part of one of my Google 
searches, some news group responder indicated that Windbind was 
necessary to make this work.



- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFDb09qCj65ZxU4gPQRAop7AKCf9H9A1CYeiNmoe656Y52w8GV0FQCgmcbt
3SW8mNYe0tnZwKSAXw9gw1o=
=KcOE
-END PGP SIGNATURE-
 



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


[Samba] samba + ldap + root user

2005-11-07 Thread FM

Hello everybody,
Simple question :
Does the LDAP root user (uid=0) needed for samba must have  root as 
username or just uid=0 ? In other words, can I have samba root user 
without calling him root ?


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


[Samba] Re: Security=user half as fast as share. Why?

2005-11-07 Thread samba1 . 20 . cdunham


samba1.20.cdunham at spamgourmet.com escreveu:
 I'm running Suse 9.2 (kernel 2.6.8-24) with Samba 3.0.20b

 When I use security=user, my read/write performance is less than half
 the peformance with security=share.  Why?  There are no other changes,
 but performance is never better than half the speed.  This happens with
 WinXP, Win2K and Win98 clients, so I don't think the client
 configuration is the problem.  Network is gigabit, with Intel Pro/1000
 adapters.

 Did you setup the socket options?

 security = share has five extra steps to check the user,
perhaps it could be a delay from the backend (LDAP or winbind).

 Kind regards,



I'm not sure what you mean by socket options.  My smb.conf is shown below. 
I'm not using LDAP or winbind. No domain, just a workgroup.


My smb.conf file is:

[global]
workgroup = MYWORKGROUP
netbios name = SERVER1
wins support = yes
domain master = yes
local master = yes
preferred master = yes
os level = 65
map to guest = Bad User

restrict anonymous = no
server signing = Auto

[test]
comment = test
path = /home/users
read only = no
guest ok = yes


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


Re: [Samba] two different logins?

2005-11-07 Thread Sascha
No ideas?

--- Sascha [EMAIL PROTECTED] wrote:

 Hey,
 
 im using samba version 3.0.20pre2-1 and w2k as
 workstation. Domain logins work fine. But when i try
 to open a share (e.g. \\server\share) it aks for a
 user/pass. Thats okay because the user doesnt have
 the
 permissions. So i try to login with an admin user.
 But
 then i get the error The specified logon
 information
 is in conflict to the existing logon information.
 So
 is there any chance to open a share with a different
 user? Or does Windows have a problem with that?
 
 Best regards and thanks in advance
 
 
   
   
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.yahoo.com
 -- 
 To unsubscribe from this list go to the following
 URL and read the
 instructions: 
 https://lists.samba.org/mailman/listinfo/samba
 




__ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba + ldap + root user

2005-11-07 Thread Tomasz Chmielewski

FM schrieb:

Hello everybody,
Simple question :
Does the LDAP root user (uid=0) needed for samba must have  root as 
username or just uid=0 ? In other words, can I have samba root user 
without calling him root ?


you can call it as you like.

I called mine Administrator.


--
Tomek
http://wpkg.org
WPKG - software deployment and upgrades with Samba

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


[Samba] SWAT not accessible from remote sites

2005-11-07 Thread Kenny Sanders
Hello,

I am not able to access SWAT from any other host besides the one running
the SWAT daemon.

No firewall blocking access on either side.

# netstat -lnt | grep 901
tcp0  0 0.0.0.0:901 0.0.0.0:* 
LISTEN

works fine connecting from localhost using:
lynx localhost:901

Unavailable using public IP on a remote host.. i.e. going into Firefox and
http://1.2.3.4:901

SWAT is configured through xinetd:

# cat /etc/xinetd.d/swat
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
#  to configure your Samba server. To use SWAT, \
#  connect to port 901 with your favorite web browser.
service swat
{
disable = no
port= 901
socket_type = stream
wait= no
only_from   = 127.0.0.1
user= root
server  = /usr/sbin/swat
log_on_failure  += USERID
}

TIA,
Kenny Sanders
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] two different logins?

2005-11-07 Thread Roger Eisenecher
Hi

Zitat von Sascha [EMAIL PROTECTED]:

 No ideas?

Windows is not able to connect to the same server with two different users. The
first one authenticated as nobody, the second one was with the supplied
username/password. 

You have to manually delete the network connection of the user nobody. After
then you will be able to connect to the desired share with the given username
and password.

kindly regards
rOger

 
 --- Sascha [EMAIL PROTECTED] wrote:
 
  Hey,
  
  im using samba version 3.0.20pre2-1 and w2k as
  workstation. Domain logins work fine. But when i try
  to open a share (e.g. \\server\share) it aks for a
  user/pass. Thats okay because the user doesnt have
  the
  permissions. So i try to login with an admin user.
  But
  then i get the error The specified logon
  information
  is in conflict to the existing logon information.
  So
  is there any chance to open a share with a different
  user? Or does Windows have a problem with that?
  
  Best regards and thanks in advance
  
  
  
  
  __ 
  Yahoo! Mail - PC Magazine Editors' Choice 2005 
  http://mail.yahoo.com
  -- 
  To unsubscribe from this list go to the following
  URL and read the
  instructions: 
  https://lists.samba.org/mailman/listinfo/samba
  
 
 
 
   
 __ 
 Yahoo! FareChase: Search multiple travel sites in one click.
 http://farechase.yahoo.com
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 




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


[Samba] using pam_smbpass to sync password

2005-11-07 Thread FM

Hello,

I would like to use pam_smbpass to sync smb password . But I need to use 
a different smbconf (I found the pam module option). What are the lines 
needed by pam_smbpass in smb.conf ?


I already did some test in debug mode, but my users is not found. I 
added  pam_smbpass to the password section. Do I have to add it to other 
pam sections ?

Last thing, SAMBA is using LDAP.

thanks !

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


[Samba] Re: Problems with smbldap

2005-11-07 Thread Andreas Bauer
The fault was the replica lines in my slapd.conf.
After deleting, smbldap-tools are  working fine for me.

Thanks
Andreas 



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


[Samba] No shares for windows

2005-11-07 Thread markus

System: w2003 SP1, samba 3.0.14a-r2 (even tried 3.0.20b)
Kernel: 2.6.12-gentoo-r4 SMP
Mode: ADS
Auth: nss_ldap, kerberos

The Problem: After a while the clients loosing their connection to the 
samba server and it's shares. After the connection is lost there is a 
clean cut: no further information is written to a machine log if trying 
to access a share on the samba server. So the problem has to be on 
windows side. Until the connection is gone forever the machine log has 
many entries like this:


[2005/11/07 12:53:54, 1] smbd/sesssetup.c:reply_spnego_kerberos(250)
  Username DOMAIN+MACHINE$ is invalid on this system

I know this error since I am using the combination of kerb, nss_ldap and 
samba as an ad member but never had problems accessing shares on sambas. 
Because of using nss_ldap, there is no entry for winbind in my 
nsswitch.conf and nss_winbind doesn't extend the machines and usernames 
as DOMAIN+{USER,MACHINE$}.


Are there any known issues related to hotfixes on windows? On w2003 it's 
definitely impossible browsing my samba shares, just refusing the 
connection without logging it anywhere. Neither under linux nor under 
windows, like if never happened.


If windows sends DOMAIN\USER (or interpreted by winbind like 
DOMAIN+USER), how can I tell samba to extend the users and machines the 
same using nss_ldap?


Thanks in advance for any help
  - markus

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


Re: [Samba] two different logins?

2005-11-07 Thread Tomasz Chmielewski

Sascha schrieb:

No ideas?

--- Sascha [EMAIL PROTECTED] wrote:



Hey,

im using samba version 3.0.20pre2-1 and w2k as
workstation. Domain logins work fine. But when i try
to open a share (e.g. \\server\share) it aks for a
user/pass. Thats okay because the user doesnt have
the
permissions. So i try to login with an admin user.
But
then i get the error The specified logon
information
is in conflict to the existing logon information.
So
is there any chance to open a share with a different
user? Or does Windows have a problem with that?


AFAIK, it's a windows problem and the best you can do is something like:

net use /delete *


--
Tomek
http://wpkg.org
WPKG - software deployment and upgrades with Samba

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


Re: [Samba] two different logins?

2005-11-07 Thread Nathan Vidican
99% of the time, this is a permissions issue. Beyond the permissions issue, you 
can only login to any given server using one set of username/password pair from 
a windows client. So you need to first disconnect, or in the case of a 
domain-login, log-off, then try with a different username.


--
Nathan Vidican
[EMAIL PROTECTED]
Windsor Match Plate  Tool Ltd.
http://www.wmptl.com/


Tomasz Chmielewski wrote:

Sascha schrieb:


No ideas?

--- Sascha [EMAIL PROTECTED] wrote:



Hey,

im using samba version 3.0.20pre2-1 and w2k as
workstation. Domain logins work fine. But when i try
to open a share (e.g. \\server\share) it aks for a
user/pass. Thats okay because the user doesnt have
the
permissions. So i try to login with an admin user.
But
then i get the error The specified logon
information
is in conflict to the existing logon information.
So
is there any chance to open a share with a different
user? Or does Windows have a problem with that?



AFAIK, it's a windows problem and the best you can do is something like:

net use /delete *



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


Re: [Samba] Samba with no printer.

2005-11-07 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michel Bouchet wrote:
| Hi,
|
| I am using Samba as a file server only; with no whatsoever printing
service.
| Therefore I would like to get rid of the printer-icon when the users
access
| the samba-server.
|
| How can I do that ?
|
| I have tried to take off everything related to printing in the
configuration
| file (/etc/samba/smb.conf) but the printer-icon is still there.
|
| Has anyboby got this problem ?
|
| Does anyone know how to solve it ?

disable spoolss = yes





cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDb34eIR7qMdg1EfYRAtp1AKC3YP8uIhdYRqpnuL+DVbfcOWNy0gCeMSa1
+JLyDW0Lfzfe+MOb6lgQcvo=
=8niG
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Add machine, user, group, etc. scripts

2005-11-07 Thread John T Benedetto

On Mon, 07 Nov 2005 11:03:07 -0200
 Felipe Augusto van de Wiel [EMAIL PROTECTED] 
wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Michael Barnes escreveu:
Can anyone tell me exactly how the various add 
machine/user/group/etc/
scripts work in Samba?  I know how to set them up in 
smb.conf.  That's
not problem.  But how are they invoked?  Some use Samba 
specific
variables like %u and %m.  How do you run a script 
manually to use these

variables?


You can manually TEST the scripts by invoking the name of 
the script, and passing parameters on the command line (in 
the proper order that the script is expecting it in, of 
course)


If you have an add user script and a non-user tries to 
log in, does it

create an account for him?


Yep. :)


Don't know about this one; we are not yet running Samba 3.

If you have an add machine script and the user attempts 
to log in from a
previously non-registered machine, does it automatically 
add that

machine to the mix?


Yep! :)


But your answer here does not make sense to me; I thought 
the add machine script was used, well, for adding machines 
to the domain.  You know... when an administrator level 
account tries to have the machine join the domain (My 
Computer/Properties/Computer Name/ then clicking Change 
where it says To rename this computer or join a domain, 
click Change).


A user CANNOT attempt to log in from a previously 
non-registered machine because the option to log into 
that domain does not exist on their login screen.


Or am I missing something here?

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


Re: [Samba] two different logins?

2005-11-07 Thread John T Benedetto


Sounds to me like you already have a connection to the 
server, and trying to map your share as the admin user is 
in conflict with it.


A workaround/test of this would be to try mapping the 
server's IP, rather than it's name:

\\nnn.nnn.nnn.nnn\share
rather than
\\server\share
and see if that works.

That is a Windows quirk, not a Samba one.

- john

On Mon, 7 Nov 2005 06:32:26 -0800 (PST)
 Sascha [EMAIL PROTECTED] wrote:

No ideas?

--- Sascha [EMAIL PROTECTED] wrote:


Hey,

im using samba version 3.0.20pre2-1 and w2k as
workstation. Domain logins work fine. But when i try
to open a share (e.g. \\server\share) it aks for a
user/pass. Thats okay because the user doesnt have
the
permissions. So i try to login with an admin user.
But
then i get the error The specified logon
information
is in conflict to the existing logon information.

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


Re: [Samba] Add machine, user, group, etc. scripts

2005-11-07 Thread Michael Barnes
John, I think the only thing you are missing is the fact that I am very 
easily confused :-)  Of course you are correct.  I guess I just didn't 
think this one through carefully.  Your question cleared it all up for me.


Thanks,
Michael


John T Benedetto told me on 11/7/2005 10:16:

If you have an add machine script and the user attempts to log in from a
previously non-registered machine, does it automatically add that
machine to the mix?


But your answer here does not make sense to me; I thought the add 
machine script was used, well, for adding machines to the domain.  You 
know... when an administrator level account tries to have the machine 
join the domain (My Computer/Properties/Computer Name/ then clicking 
Change where it says To rename this computer or join a domain, click 
Change).


A user CANNOT attempt to log in from a previously non-registered 
machine because the option to log into that domain does not exist on 
their login screen.


Or am I missing something here?

- jb

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


[Samba] identify samba share from ms-dos

2005-11-07 Thread Delboy

I have programs written in torbo pascal, for ms-dos / novell environment.

I need to know if  a user has placed  data files on a samba shared
drive, as the program needs to implement different locking mechanism.
Is there  an Ms-dos function call which can identify the drive
parameters of a samba share, ??

del

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


Re: [Samba] Error while executing smbd in unix x86 workstation

2005-11-07 Thread Stefan Varga

Hi Allan,

try to install/run packages which matches your architecture.

Stefan


Alan Tan wrote:


Hi All,

I've install Unix version 9.0 in my pc (intel workstation). I've configure 
network connection, file share, samba and etc.

The samba package are samba-3.0.21pre1-1-noads-sunos5.9-sparc.pkg.gz. I 
encountered the following error while executing smbd. Please advise.

Error:
./smbd: syntax error at line1: '(' unexpected

Thanks in advance.

Regards,
Alan



-
Yahoo! FareChase - Search multiple travel sites in one click.  
 




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


Re: [Samba] 2003 Server won't join or leave domain

2005-11-07 Thread Eric A. Hall

On 11/6/2005 7:05 PM, Michael Keightley wrote:
 We've got a Windows 2003 server which won't join our Samba domain, it just 
 sits
 their forever after I give the root password to join.  It doesn't give an \
 error message or Welcome to domainxyz message.  
 It also won't join a workgroup, which is strange.  Has anyone else seen this
 problem?  No problems with XPSP2 clients.  Not got 2003 SP1 on yet, might try
 that next.

windows server 2003 (with all patches and updates) joined my domain fine

-- 
Eric A. Hallhttp://www.ehsco.com/
Internet Core Protocols  http://www.oreilly.com/catalog/coreprot/
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] can not create directory/file under samba server

2005-11-07 Thread Clifford Ton
Hello,

  

From window client, I can read file but I can not create directory/file
under samba server. 

 

I got the following error in /var/log/samba:  

  

[2005/11/07 09:11:03, 0] lib/util_sock.c:write_socket_data(430)

  write_socket_data: write failure. Error = Connection reset by peer

[2005/11/07 09:11:03, 0] lib/util_sock.c:write_socket(455)

  write_socket: Error writing 4 bytes to socket 24: ERRNO = Connection reset
by peer

[2005/11/07 09:11:03, 0] lib/util_sock.c:send_smb(647)

  Error writing 4 bytes to client. -1. (Connection reset by peer)

  

My setup info:

 

[EMAIL PROTECTED] samba]# testparm -s

Load smb config files from /etc/samba/smb.conf

Processing section [homes]

Processing section [home]

Loaded services file OK.

# Global parameters

[global]

server string = Samba

security = SHARE

guest account = cliffton

passwd program = /usr/bin/passwd %u

passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*

unix password sync = Yes

log file = /var/log/samba/%m.log

max log size = 0

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

dns proxy = No

guest ok = Yes

 

[homes]

comment = opt

path = /opt

valid users = cliffton

read only = No

create mask = 0664

directory mask = 0775

 

[home]

comment = opt3

path = /

read only = No

 

 

[EMAIL PROTECTED] samba]# uname -r

2.6.11-1.1369_FC4

 

 

Any help will be much appreciated

 

Clifford

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


[Samba] General Question: WinXP autodomain?

2005-11-07 Thread Andre Timmermann
Hello List,

I am using Samba as PDC for some time now and I want do make the process
of joining the domain somewhat more elegant ;)

I use partimage to deploy images of my Windows XP-installation to the
computers in my lab. In order to automate the process of joining these
computers to the domain, I use some small perl-scripts. 

1. After installing new software, etc. I have to create a new image. I
have written a perlscript, which will be executed the next time, the
computer starts (I've put it in the registry -RunOnce...)

2. This script sets the hostname of the fresh installed computer via
it's IP-adress. Then the script Puts another script in RunOnce, which
will execute netdom.exe to join the domain after next reboot. (Changing
the hostname requires a reboot )

3. After the 2nd reboot each machine has got an unique hostname and has
joined the domain.

OK, this procedure may not be very elegant, but it works for me.

Here are my questions:
Is it possible to deliver the hostname to the WinXP-workstations via
DHCP? (natively, without help of external applications)

What happens to a computer which has joined my domain, when I change the
hostname in my DHCP-Server? Will it remain in the domain?

If this is possible, I can throw away my perlscripts ;)

Greetz,
Andre


-- 
BOFH-excuse of the day: Zombie processes detected, machine is haunted.

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


[Samba] Security=user half as fast as share. Why?

2005-11-07 Thread samba1 . 20 . cdunham


samba1.20.cdunham at spamgourmet.com escreveu:
 I'm running Suse 9.2 (kernel 2.6.8-24) with Samba 3.0.20b

 When I use security=user, my read/write performance is less than half
 the peformance with security=share.  Why?  There are no other changes,
 but performance is never better than half the speed.  This happens with
 WinXP, Win2K and Win98 clients, so I don't think the client
 configuration is the problem.  Network is gigabit, with Intel Pro/1000
 adapters.

 Did you setup the socket options?

 security = share has five extra steps to check the user,
perhaps it could be a delay from the backend (LDAP or winbind).

 Kind regards,



I'm not sure what you mean by socket options.  My smb.conf is shown below. 
I'm not using LDAP or winbind. No domain, just a workgroup.


My smb.conf file is:

[global]
workgroup = MYWORKGROUP
netbios name = SERVER1
wins support = yes
domain master = yes
local master = yes
preferred master = yes
os level = 65
map to guest = Bad User

restrict anonymous = no
server signing = Auto

[test]
comment = test
path = /home/users
read only = no
guest ok = yes



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


[Samba] ntlm_auth bug?

2005-11-07 Thread johnh
Greetings,

Using ntlm_auth in squid-2.5-basic mode, everything works fine until 
someone enters a bad password.

After that, all auth attemps fail, until you check winbind functionality 
with wbinfo -t.

After that, it works again until the next time someone gets their password 
wrong.

Ideas?

Version: Samba 3.0.20b on Fedora Core 4 for x86_64.

Thanks in advance,

John E.P. Hynes
System Administrator
Prime, Buchholz  Associates, Inc.
25 Chestnut Street
Portsmouth, NH 03801
Phone: (603) 433-1143 x1193
Fax: (603) 433-8661
E-Mail: [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] AD Question

2005-11-07 Thread Jason Gerfen
I have a question regarding joining a Samba 3 machine to a Windows 2000 
Domain using ADS authentication.


I have been able to join the machine to the domain, enumerate users with 
getent and wbinfo -u.  The problem I am having is with a Windows 2000 
default domain setup an AD object is created:


CN=Users,DC=Domain,DC=Com

Generally all users created belong in this container.  I am able to 
enumerate every user account in the domain EXCEPT this one?  Can someone 
help me with this?


[smb.conf]

[global]
   workgroup = SCL
   realm = SCL.UTAH.EDU
   server string = new-odin.domain.com
   security = ADS
   update encrypted = Yes
   password server = *
   password level = 20
   preferred master = No
   domain master = No
   idmap uid = 500-50
   idmap gid = 500-50
   winbind separator = /
   winbind cache time = 5
   winbind use default domain = Yes
   winbind nested groups = Yes

[odin]
   comment = ODIN
   path = /odin
   read only = No
   inherit acls = Yes

[krb5.conf]

[libdefaults]
default_realm = DOMAIN.COM
clockskew = 300

[realms]
DOMAIN.COM = {
kdc = 10.10.1.95
default_domain = domain.com
admin_server = 10.10.1.95
}


[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log

[domain_realm]
.domain.com = DOMAIN.COM
domain.com = DOMAIN.COM

[appdefaults]
pam = {
ticket_lifetime = 1d
renew_lifetime = 1d
forwardable = true
proxiable = false
retain_after_close = false
minimum_uid = 0
}

Any help is appreciated.

--
Jason Gerfen

My girlfriend threated to
leave me if I went boarding...
I will miss her.
~ DIATRIBE aka FBITKK

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


Re: [Samba] SWAT not accessible from remote sites

2005-11-07 Thread John H Terpstra
On Monday 07 November 2005 07:43, Kenny Sanders wrote:
 Hello,

 I am not able to access SWAT from any other host besides the one running
 the SWAT daemon.

 No firewall blocking access on either side.

 # netstat -lnt | grep 901
 tcp0  0 0.0.0.0:901 0.0.0.0:*
 LISTEN

 works fine connecting from localhost using:
 lynx localhost:901

 Unavailable using public IP on a remote host.. i.e. going into Firefox and
 http://1.2.3.4:901

 SWAT is configured through xinetd:

 # cat /etc/xinetd.d/swat
 # default: off
 # description: SWAT is the Samba Web Admin Tool. Use swat \
 #  to configure your Samba server. To use SWAT, \
 #  connect to port 901 with your favorite web browser.
 service swat
 {
 disable = no
 port= 901
 socket_type = stream
 wait= no
 only_from   = 127.0.0.1


Your SWAT confiugration is doing what it is configured to do. See above entry!

- John T.

 user= root
 server  = /usr/sbin/swat
 log_on_failure  += USERID
 }

 TIA,
 Kenny Sanders
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] winbind - getent problem

2005-11-07 Thread Emmanuel Blindauer
If the login start with a number, il can cause some problems.
linux account must be [a-Z][a-Z0-9]+  
but a number at start seems to be allowed
but getent look at first char to differenciate a login from a uid.
mandriva is patched against that, debian isn't.
for suse I don't know.

Emmanuel


Le Jeudi 03 Novembre 2005 14:11, Budai Laszlo a écrit :
 Hi,

 I'm trying to authenticate users from AD. I did join the machine to the
 domain, and I'm able to see the users list with wbinfo -u.

 I have the following problem:
 getent passwd it givs me the list of all users.

 getent passwd user  does not give any answer.

 what could be the problem?

 I'm using SUSE Linux 10. with the packages that came with the distrib.

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


Re: [Samba] Error while executing smbd in unix x86 workstation

2005-11-07 Thread Stefan Varga

Hi Allan,

try to install/run packages which matches your architecture.

Stefan

Alan Tan wrote:


Hi All,

I've install Unix version 9.0 in my pc (intel workstation). I've configure 
network connection, file share, samba and etc.

The samba package are samba-3.0.21pre1-1-noads-sunos5.9-sparc.pkg.gz. I 
encountered the following error while executing smbd. Please advise.

Error:
./smbd: syntax error at line1: '(' unexpected

Thanks in advance.

Regards,
Alan



-
Yahoo! FareChase - Search multiple travel sites in one click.  
 



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


[Samba] LDAP+BDC user password change trouble

2005-11-07 Thread robert . walland
Hi,
We are using a PDC (Primary LDAP) and BDC (Replica LDAP). Changing 
password on PDC works fine, but no way when users are logged on BDC. The 
truth is that PDC and BDC are configured with  passdb backend = 
ldapsam:ldap://127.0.0.1/. The users get the message like You are not 
allowed to change password   or You can not change password at this 
time when they want to change their password.
Is it only possible to change password when the BDC is showing to Primary 
LDAP? As I know LDAP supports that you can change something on Replica 
which is then synchronized with the primary LDAP. I'm using only idealx 
scripts and they are not included in the BDC smb.conf, because BDC should 
do only logging for now.
Some lines from my smb.conf 
 
workgroup = DOMAIN
netbios name = SERVER
server string = LDAP BDC Samba Server %v 

os level = 65
preferred master = no
local master = yes
domain master = no
domain logons = yes
security = user
enable privileges = no
encrypt passwords = yes
obey pam restrictions = No
 
name resolve order = wins bcast
dns proxy = no

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 
IPTOS_LOWDELAY

syslog = 2
syslog only = yes

 preserve case = yes
case sensitive = no
 
logon path =
logon home =
 
passdb backend = ldapsam:ldap://127.0.0.1/
 ldap admin dn = cn=samba,ou=DSA,dc=r-kb,dc=si
ldap suffix = dc=r-kb,dc=si
ldap user suffix = ou=Users
ldap group suffix = ou=Groups
ldap machine suffix = ou=Computers
# ldap idmap suffix = ou=Idmap
 
#ldap delete dn = Yes
#ldap chat debug = Yes
ldap ssl = no
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] winbind problem

2005-11-07 Thread johnh
The problem is actually with winbind, as the following produces identical 
results:

1) /usr/local/samba/bin/wbinfo -a mydomain\\myname%myrealpassword
plaintext password authentication succeeded
challenge/response password authentication succeeded

2) /usr/local/samba/bin/wbinfo -a mydomain\\myname%aboguspassword
plaintext password authentication failed
error code was NT_STATUS_WRONG_PASSWORD (0xc06a)
error messsage was: Wrong Password
Could not authenticate user mydomain\myname%aboguspassword with plaintext 
password
challenge/response password authentication failed
error code was NT_STATUS_ACCESS_DENIED (0xc022)
error messsage was: Access denied
Could not authenticate user mydomain\myname with challenge/response

3) /usr/local/samba/bin/wbinfo -a mydomain\\myname%myrealpassword
plaintext password authentication failed
error code was NT_STATUS_WRONG_PASSWORD (0xc06a)
error messsage was: Wrong Password
Could not authenticate user mydomain\myname%aboguspassword with plaintext 
password
challenge/response password authentication failed
error code was NT_STATUS_ACCESS_DENIED (0xc022)
error messsage was: Access denied
Could not authenticate user mydomain\myname with challenge/response

4)  /usr/local/samba/bin/wbinfo -t
checking the trust secret via RPC calls succeeded

5) /usr/local/samba/bin/wbinfo -a mydomain\\myname%myrealpassword
plaintext password authentication succeeded
challenge/response password authentication succeeded

John E.P. Hynes
System Administrator
Prime, Buchholz  Associates, Inc.
25 Chestnut Street
Portsmouth, NH 03801
Phone: (603) 433-1143 x1193
Fax: (603) 433-8661
E-Mail: [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: ntlm_auth bug?

2005-11-07 Thread Rex Dieter

[EMAIL PROTECTED] wrote:

After that, all auth attemps fail, until you check winbind functionality 
with wbinfo -t.


After that, it works again until the next time someone gets their password 
wrong.


Ideas?
Version: Samba 3.0.20b on Fedora Core 4 for x86_64.


Samba-3.0.20b on Fedora Core 3, i386.  WORKSFORME.  Maybe a x86_64 thing?

-- Rex

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


[Samba] Passwords expiring

2005-11-07 Thread Scott Mayo
I have a Samba 3 server setup using LDAP for the backend.  I keep 
getting a message that the passwords will expire.  This happened about a 
month ago and I did not worry about it, because my XP machines kept 
telling me this last year, but they never expired.  I figured it was 
something to do with XP and not my Samba server.  This year though, with 
my new server, they did expire and I had to reset them all.  I thought I 
went through and had it set where they would not expire.  Maybe I did 
and they will not, just like last year, but if they do, what do I need 
to do so they do not expire?


Here is what I did when I reset them.  I used the smbldap-usermod 
program to change the expire time to a long, long time away.


smbldap-usermod -e 2999-01-01 01:01:01 -A 0 username

Shouldn't that tell it to make the passwords to expire on January 1, 2999?


Scott Mayo
Technology Coordinator
Bloomfield Schools
PH: 573-568-5669
FA: 573-568-4565
Pager: 800-264-2535 X2549

Duct tape is like the force, it has a light side and a dark side and it
holds the universe together.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] [OTAnn] Feedback

2005-11-07 Thread shenanigans
I was interested in getting feedback from current mail group users.

We have mirrored your mail list in a new application that provides a more 
aggregated and safe environment which utilizes the power of broadband.

Roomity.com v 1.5 is a web 2.01 community webapp. Our newest version adds 
broadcast video and social networking such as favorite authors and an html 
editor.

It?s free to join and any feedback would be appreciated.

S.




Broadband interface (RIA) + mail box saftey = a 
href=http://Samba_General_Discussions_List.roomity.com;Samba_General_Discussions_List.roomity.com/a
*Your* clubs, no sign up to read, ad supported; try broadband internet. 
~~1131397868814~~

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


[Samba] Urgent Samba / Squid NTLM Auth Problems

2005-11-07 Thread Ian Barnes
Hi, 

We are having problems setting up a squid cache server to use NTLMv2
authentication to authenticate users against AD.

We have narrowed the problems down to being a problem between samba and
squid when using NTLMv2. It constantly moans about the password being wrong
when using squid, but doing a direct samba auth works fine. We have
(believedly) narrowed it down to this: the domain requires client ntlmv2 =
yes in samba to work - however it seems ntlm_auth does not support this!

Our process was as follows:

On the domain controller, we set the Network Security: LAN Manager
authentication level properties option to be Send Send NTLM response
only. We then set smb.conf to look something like this:

[global]
winbind separator = +
winbind cache time = 10
workgroup = DOMAIN
security = ads
winbind uid = 1-2
winbind gid = 1-2
winbind use default domain = yes
#realm = S058DS1001001.DOMAIN.COM
#client ntlmv2 auth = yes
log file = /var/log/log.%m

That works, when joining the domain we can see the users, groups etc. Some
of the commands we ran:
[EMAIL PROTECTED] ~ # wbinfo -a Proxy2%Password_1 
plaintext password authentication succeeded challenge/response password
authentication succeeded [EMAIL PROTECTED] ~ # wbinfo -t checking the trust 
secret
via RPC calls succeeded

All worked fine, and squid could auth the user as could a wbinfo -a. 

We then switched the option in AD to Send NTLMv2 response only\refuse LM 
NTLM and the smb.conf to the following:

[global]
winbind separator = +
winbind cache time = 10
workgroup = DOMAIN
security = ads
winbind uid = 1-2
winbind gid = 1-2
winbind use default domain = yes
realm = S058DS1001001.DOMAIN.COM
client ntlmv2 auth = yes
log file = /var/log/log.%m

When we join the domain, it joins fine, we run winbindd and nmbd and we can
then lookup the users and groups. We can do a net ads testjoin which works
fine aswell

[EMAIL PROTECTED] ~ # net ads testjoin
Join is OK

Note that client ntlmv2 is on now. The problem comes in when trying to use
squid to do the authentication. We get the following error in the squid log
file if we set the authenticators debugging to level 9:

[2005/11/07 13:36:35, 3] libsmb/ntlmssp.c:ntlmssp_server_auth(606)
  Got user=[Proxy4] domain=[DOMAIN] workstation=[ianb] len1=24 len2=24
[2005/11/07 13:36:35, 3] utils/ntlm_auth.c:winbind_pw_check(427)
  Login for user [EMAIL PROTECTED] failed due to [Wrong Password]

If we type in a username that doesn't exist, it complains that the username
is invalid, so we know that it has todo with the password. We also know that
the password is correct as we tried this numerous times and we also tried
copy pasting the password into the required field.

Our squid.conf looks like this:
auth_param ntlm program /usr/local/libexec/squid/ntlm_auth
--helper-protocol=squid-2.5-ntlmssp -d9
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 2 minutes auth_param ntlm children 2
auth_param basic program /usr/local/libexec/squid/ntlm_auth
--helper-protocol=squid-2.5-basic -d9
auth_param basic children 2
auth_param basic realm Cache NTLM Authentication auth_param basic
credentialsttl 2 hours

Anyone have any idea as to why that would happen when only using squid? Is
there an option that we need to set to make the authenticator use ntlmv2
only or something like we had to do for samba? Does ntlm_auth not understand
the v2 protocol properly?


Onto another question, when I join the domain for the first time, I get this
error when trying to do anything besides a wbinfo -u or wbinfo -g. Here are
a few examples:

[EMAIL PROTECTED] ~ # wbinfo -t
checking the trust secret via RPC calls 
failed error code was NT_STATUS_ACCESS_DENIED (0xc022) 
Could not check secret

And this from the squid log if we try and auth a user:
[2005/10/31 11:43:36, 0] utils/ntlm_auth.c:winbind_pw_check(427)
  Login for user [EMAIL PROTECTED] failed due to [Access denied]
[2005/10/31 11:43:36, 0] utils/ntlm_auth.c:manage_squid_ntlmssp_request(600)
  NTLMSSP BH: NT_STATUS_ACCESS_DENIED

The strange thing is these errors stop happening from anywhere between 5 and
15 minutes after joining the domain. Any ideas as to why they are occurring
in the first place? Basically: We are able to list users, and groups - but
wbinfo -t doesn't work until we've been logged on for 5-15 minutes
(randomly)?

Thanks in advance,
Ian



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


[Samba] Visual Studio/Samba Compile from Shares issue

2005-11-07 Thread Ing . Büro J . Nold

Subject:
==
fatal error C1001: INTERNER COMPILER- FEHLER
   (Compiler-Datei 'E:\8966\vc98\p2\src\P2\p2symtab.c', Zeile 932)
   Bitte klicken Sie im Menü '?' von Visual C++ auf 'Software Service',
 oder öffnen Sie die Hilfedatei für den Software Service, um weitere

Informationen zu erhalten.
==


Hi,

maybe my experience helps ...

Set the output directories form 'Debug' to a 
local dir, e.g. 'c:\temp\debug'. Then it should work fine ...

I had a similar problem with the .Net compiler, which always
had 'security problems' ...

'Hope it work's on your machine (-s) ...

Yours
JN

*---
---*
Ingenieurbüro J.Nold
 
Darmstädter Str. 67
64572   Büttelborn (bei Darmstadt)
Tel.:   +49-6152-858222
Fax.:   +49-6152-858224
Mobil:  +49-173-6509484
E-Mail: [EMAIL PROTECTED]
Web:www.jnold.de

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


[Samba] rsync: readdir(.): Bad file descriptor (9)

2005-11-07 Thread Jim Carroll
Hi,

I've spent the better part of three weeks tracking into this problem. I hope
you don't mind a post here on smbfs, but I was hoping someone might have
some insight or ideas on where to look next.

Summary: trying to rsync folders across an smb mounted share with EXACTLY 50
objects (folder or files), results in the error

rsync: readdir(.): Bad file descriptor (9)

Details

The problem seems to be related to the number of objects in a folder.  

The problem can very easily be re-created by creating 50 files in a samba
share, and trying to rsync it to a FreeBSD 4.11 or Darwin box.

# mount_smbfs -I [ipaddr w2k] '//[EMAIL PROTECTED]/C$' /mnt
# mkdir /mnt/dummy
# cd /mnt/dummy
# touch 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
# rsync -rn /mnt/dummy /var/tmp

Error message
building file list ... rsync: readdir(.): Bad file descriptor (9)


The source of the error message is /usr/src/sys/netsmb/smb_rq.c
Line 344

if (rqp-sr_vc-vc_hflags2  SMB_FLAGS2_ERR_STATUS) {
error = md_get_uint32le(mdp, rqp-sr_error);
} else {
error = md_get_uint8(mdp, rqp-sr_errclass);
error = md_get_uint8(mdp, tb);
error = md_get_uint16le(mdp, rqp-sr_serror);
if (!error)
rperror = smb_maperror(rqp-sr_errclass, rqp-sr_serror);


I'm working through the netsmb source code, but it's slow going.

I ran the above example on 

# uname -a
FreeBSD 30.dhcp.hck.carroll.com 4.11-STABLE FreeBSD 4.11-STABLE #1: Tue Nov
1 22:15:50 EST 2005
[EMAIL PROTECTED]:/usr/src/sys/compile/NC.DEBUG  i386


We also ran it on a Darwin machine

$ uname -a
Darwin 94.dhcp.hck.carroll.com 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30
20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power Macintosh
powerpc

Both machines reported the same error.

building file list ... rsync: readdir(.): Bad file descriptor (9)

What's particularly interesting, is other utilities can successfully recurse
into the directory without any problems.  I've written a small command line
utility that does

opendir()
readdir()
lstat()

which is basically what rsync does, I get no errors.  I've gone over rsync
with gdb, and can't find anything too unusual going on.  Execpt for the fact
that I can only create the problem using rsync.

Any pointers, crazy ideas, off the wall theories, etc... would be greatly
appreciated.

---
Jim C.  | Carroll-Net, Inc.
201-488-4092|
www.carroll.com | Application Service Provider

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


Re: [Samba] Passwords expiring

2005-11-07 Thread Andrew Bartlett
On Mon, 2005-11-07 at 14:48 -0600, Scott Mayo wrote:
 I have a Samba 3 server setup using LDAP for the backend.  I keep 
 getting a message that the passwords will expire.  This happened about a 
 month ago and I did not worry about it, because my XP machines kept 
 telling me this last year, but they never expired.  I figured it was 
 something to do with XP and not my Samba server.  This year though, with 
 my new server, they did expire and I had to reset them all.  I thought I 
 went through and had it set where they would not expire.  Maybe I did 
 and they will not, just like last year, but if they do, what do I need 
 to do so they do not expire?
 
 Here is what I did when I reset them.  I used the smbldap-usermod 
 program to change the expire time to a long, long time away.
 
 smbldap-usermod -e 2999-01-01 01:01:01 -A 0 username
 
 Shouldn't that tell it to make the passwords to expire on January 1, 2999?

Firstly, I would not set it to any date past 2037.  10 years should be
long enough for a password, and not catch problems with time_t overflow.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net


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

[Samba] %u and %U different between Win98 and Win XP Pro

2005-11-07 Thread George
I have a computer here with both Win 98 and Win XP Pro set up as a dual
boot. The computer name and domain are the same in both O/S's. I log in to
them with the user name george. When I log in from Win 98, %u expands to
my username, george. When I log in through Win XP, I get guest. Can
anyone suggest why this is happening?  I don't have any userid's on the
samba box, all the authentication is done on a win2000 server. All I want
the samba box to do is host the my documents folder for each student,
based on the user name they log on with.  Anyway, here is my smb.conf - any
help welcomed.

 

[global]

   workgroup = ISASKILLS

   server string = Training

   load printers = yes

   log file = /var/log/samba

   max log size = 50

   security = share

   ssl CA certDir = /etc/ssl/certs

   socket options = TCP_NODELAY

   wins support = yes

 

[printers]

   comment = Canon Bubble Jet 265sp

   path = /var/spool/samba

   browseable = yes

   public = yes

   printer = bjc265sp

   guest ok = yes

   writable = no

   printable = yes

 

[ComPro]

  comment = Community Promotions

  browseable = no

  public = yes

  path = /var/shared/compro

  writable = yes

  printable = no

 

[Admin]

  comment = CommPro Admin

  browseable = no

  path = /var/shared/admin

  writeable = yes

  printable = no

  public = yes

 

[CDRom]

  comment = Shared CDRom

  browseable = yes

  public = yes

  path = /cdrom

  writeable = no

  printable = no

 

[Resources]

  comment = Computer Resources

  browseable = yes

  public = yes

  path = /var/shared/resources

  writeable = yes

  printable = no

 

[My Documents]

  comment = My Documents

  guest ok = yes

  browseable = yes

  public = yes

  path = /var/shared/compro/%U

  writeable = yes

  printable = no

 

 

Mount Isa - Rodeo Capital of Australia

 

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

Re: [Samba] LDAP+BDC user password change trouble

2005-11-07 Thread Andrew Bartlett
On Mon, 2005-11-07 at 21:14 +0100, [EMAIL PROTECTED] wrote:
 Hi,
 We are using a PDC (Primary LDAP) and BDC (Replica LDAP). Changing 
 password on PDC works fine, but no way when users are logged on BDC. The 
 truth is that PDC and BDC are configured with  passdb backend = 
 ldapsam:ldap://127.0.0.1/. The users get the message like You are not 
 allowed to change password   or You can not change password at this 
 time when they want to change their password.
 Is it only possible to change password when the BDC is showing to Primary 
 LDAP? As I know LDAP supports that you can change something on Replica 
 which is then synchronized with the primary LDAP. 

This is supported on some commerical ldap servers, and Fedora (I think).
I've only used OpenLDAP so far, which is strictly master/slave(s).

 I'm using only idealx 
 scripts and they are not included in the BDC smb.conf, because BDC should 
 do only logging for now.
 Some lines from my smb.conf 

The way this works is that the slave ldap server should send a referral
saying 'do your modify over here'.  If the LDAP server sends this
(configured in the slapd.conf for openldap), then Samba makes the
modification on the master.  It is not configured in Samba itself.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net


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

[Samba] Share file permissions

2005-11-07 Thread Donald W Watson




I have not been able to find this exact problem on the mailing list;
apologize if I missed it.

I have tried both samba versions 3.0.20 and 3.0.21pre1.

The file share in smb.conf has these entries:
path = /home/samba/myshare
guest ok = no
read only = no
force create mode = 0644
force directory mode = 0775

The directory myshare has the following permissions:   nobody root
dwrxr-xr-x
A file called myfile on myshare has the following permissions:  nobody
root -rw-r--r--
A mount directory on a second machine has the following permissions:
nobody root drwxrwxrwx
The share is mounted on the mount directory on the second with a non-root
user:
  smbmount //fileserver ipaddr/myshare -o username=non root
user,password=non root user password

The the following is attempted:
 1. cd (as root) to the mount directory
 2. edit myfile (this works)
 3. mv myfile to /tmp (this fails, permission denied)

Is this expected behavior, and was it different in previous versions of
Samba?

Sincerely,Don Watson
Linux Technology and Solutions; Beaverton, OR
503-578-4861/TL: 775-4861; [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] AD Question

2005-11-07 Thread Doug VanLeuven

Jason Gerfen wrote:
I have a question regarding joining a Samba 3 machine to a Windows 2000 
Domain using ADS authentication.


I have been able to join the machine to the domain, enumerate users with 
getent and wbinfo -u.  The problem I am having is with a Windows 2000 
default domain setup an AD object is created:


CN=Users,DC=Domain,DC=Com

Generally all users created belong in this container.  I am able to 
enumerate every user account in the domain EXCEPT this one?  Can someone 
help me with this?


[smb.conf]

[global]
   workgroup = SCL
   realm = SCL.UTAH.EDU
   server string = new-odin.domain.com


My experience is the realm is the DC parts of the ldap container.
So your realm should be DOMAIN.COM, the same as in krb5.conf.
I'm thinking your samba box has an older DNS domain name that's not
the same as your win2000 DNS domain name.

You may be past the planning  testing stage, but I found the
easiest way to introduce the win2000 domain was as a subdomain
of any existing domain I already was authoritative for.

So if you're authoritative for UTAH.EDU than your win2000 domain
and realm would be something like scl.utah.edu or nt.utah.edu
with a legacy domain name of SCL.

Then you can allow windows server to run it's own DNS and delegate
the subdomain with glue from your existing servers.  There are
a -lot- of realm subdomains and SRV records generated by windows
that make the system easier to integrate.

Like if you ever get into mail routing with the windows machines,
you'll find MS believes the domain name should be an official
ICANN domain and it's kind of difficult to alias.  Not
impossible, but if the windows realm could be a real
delegated domain, since you appear to have one, the future
would be much easier.

Regards, Doug


   security = ADS
   update encrypted = Yes
   password server = *
   password level = 20
   preferred master = No
   domain master = No
   idmap uid = 500-50
   idmap gid = 500-50
   winbind separator = /
   winbind cache time = 5
   winbind use default domain = Yes
   winbind nested groups = Yes

[odin]
   comment = ODIN
   path = /odin
   read only = No
   inherit acls = Yes

[krb5.conf]

[libdefaults]
default_realm = DOMAIN.COM
clockskew = 300

[realms]
DOMAIN.COM = {
kdc = 10.10.1.95
default_domain = domain.com
admin_server = 10.10.1.95
}


[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log

[domain_realm]
.domain.com = DOMAIN.COM
domain.com = DOMAIN.COM

[appdefaults]
pam = {
ticket_lifetime = 1d
renew_lifetime = 1d
forwardable = true
proxiable = false
retain_after_close = false
minimum_uid = 0
}

Any help is appreciated.



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


[Samba] User Manager Tools

2005-11-07 Thread Michael Barnes
I loaded the NT4 Domain Manager tools and tried to use UserMgr to add 
some users.  The add users sections of the menu are grayed out and I 
cannot do the deed.  I've tried a variety of things.  The machine was a 
member of the domain, I was logged in a administrator, which seemed to 
map as root in Samba, but still all I could do is look, not touch.


Any ideas what I did wrong this time?

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


[Samba] Trust Accounts and Machine Name Case

2005-11-07 Thread Tom Conway

I've been very frustrated with getting XP to connect to samba.
I added a machine account on Linux 
  useradd -g workstation -d /dev/null -s /bin/false xpmachine$
  then pdbedit -a -m -u xpmachine
  on XP i change the name to xpmachine and connect as root.
I'm welcomed into my domain as expected
When I reboot I cannot login because my account isn't recognized
although I can login as administrator and browse, map etc.

The Samba log says no account exists for XPMACHINE$ (uppercase) even
though it's lowercase in pdbedit and /etc/passwd.

In XP you can't change the machine name case but you can change from a
domain to a workgroup, then back again and go to uppercase... and now I
can login to my domain!! Until it breaks again and I have to do this all
over again. I've looked at every registry tweak I can find. Everything
I read says machine accounts are not case sensitive. Is there any
setting, either in Samba or XP that will put an end to this?

Thanks
winxp (fresh install updated to sp2)
samba-3.0.10-1.fc2.i386.rpm (tdbsam backend)
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Trust Accounts and Machine Name Case

2005-11-07 Thread Craig White
On Mon, 2005-11-07 at 18:36 -0500, Tom Conway wrote:
 I've been very frustrated with getting XP to connect to samba.
 I added a machine account on Linux 
   useradd -g workstation -d /dev/null -s /bin/false xpmachine$
   then pdbedit -a -m -u xpmachine
   on XP i change the name to xpmachine and connect as root.
 I'm welcomed into my domain as expected
 When I reboot I cannot login because my account isn't recognized
 although I can login as administrator and browse, map etc.
 
 The Samba log says no account exists for XPMACHINE$ (uppercase) even
 though it's lowercase in pdbedit and /etc/passwd.
 
 In XP you can't change the machine name case but you can change from a
 domain to a workgroup, then back again and go to uppercase... and now I
 can login to my domain!! Until it breaks again and I have to do this all
 over again. I've looked at every registry tweak I can find. Everything
 I read says machine accounts are not case sensitive. Is there any
 setting, either in Samba or XP that will put an end to this?
 
 Thanks
 winxp (fresh install updated to sp2)
 samba-3.0.10-1.fc2.i386.rpm (tdbsam backend)

Just in case because I may misunderstand what you are saying...

machine accounts are trust accounts but they aren't a user account and
you can't log in as you would with a user account.

1 - you seem to be making this way too difficult. You should have
appropriate scripts for adding users and adding machine accounts to
domain. Machine accounts should be created on the fly with the right
script. I've never considered fooling with machine accounts in pdbedit
but perhaps there are reasons for doing so.

2 - Suggest that you work through one of the 'By Example' of John's
excellent documentation, perhaps chapter 2...
http://us3.samba.org/samba/docs/man/Samba-Guide/small.html

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


[Samba] urgent - migration samba domain from machine and version

2005-11-07 Thread David Ballester Montolio
scenario:

server_old - Redhat 8 with samba 2.2.8a
server_new - Debian 3.1 Sarge with samba 3.0.14a

domain to be moved/migrated : DOMINIO
smbpasswd -X server  domain in server_old

SID for domain DOMINIO is:
S-1-5-21-2465226537-159659893-3376541719
SID for domain server_old is:
S-1-5-21-2465226537-159659893-3376541719

samba in server_old stopped

scp server_old@/etc/samba to server_new@/etc/samba
scp  server_old@/var/cache/samba to
server_new@/var/lib/samba

change hostname in server_new to be the same than
server_old

clean up posible deprecated parameters on
server_new@/etc/samba/smb.conf

Startup services in server_new

Some w2k clients refuse to connect to domain, other
w2k  connect shares but not log on domain

now server_new has the same hostname than server_old:

net getlocalSID server_new

samba:/etc/samba# net getlocalSID
SID for domain server_new is:
S-1-5-21-2465226537-159659893-3376541719

samba:/etc/samba# net getlocalSID DOMINIO
SID for domain DOMINIO is:
S-1-5-21-4235226690-1130889889-3870389432

I think that i need to 'copy' SID for domain
server_new to SID for domain DOMINIO

Any tip? what is your suggestion? need to have this
domain up  and running as soon as possible. Data has
been migrated yet :(

TIA









__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Windows 2000 SP4 rollup 1

2005-11-07 Thread Allen Armstrong
Hi,

 

I have been trying to join a windows 2000 domain using NT4 style.  The
domain controller is running fully patched.  Is there any known issues with
joining a domain the doing lookups this way?  The reason why I ask is when I
join using the net rpc join, I am able to test the it using wbinfo -t and
returns successful.  I am however unable to get groups or users.
Interestingly enough here is what I get:

 

Wbinfo -u

Error looking up domain users

 

Wbinfo -g

Error looking up domain groups 

 

With logging low I get:

 

winbindd.log:

 

[2005/11/06 23:39:37, 0] rpc_parse/parse_prs.c:prs_mem_get(535)

  prs_mem_get: reading data of size 4 would overrun buffer by 4 bytes.

 

I am just wondering if there is any issues with rollup or any the latest
patches.  I currently running samba samba-3.0.20b-1 running Red Hat
Enterprise Linux AS release 3 I built this samba from RPMS from the samba
web site.

 

 

Ttyl,

 

 

Allen Armstrong

 

 

 

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


Re: [Samba] Urgent Samba / Squid NTLM Auth Problems

2005-11-07 Thread Andrew Bartlett
On Mon, 2005-11-07 at 23:21 +0200, Ian Barnes wrote:
 Hi, 
 
 We are having problems setting up a squid cache server to use NTLMv2
 authentication to authenticate users against AD.
 
 We have narrowed the problems down to being a problem between samba and
 squid when using NTLMv2. It constantly moans about the password being wrong
 when using squid, but doing a direct samba auth works fine. We have
 (believedly) narrowed it down to this: the domain requires client ntlmv2 =
 yes in samba to work - however it seems ntlm_auth does not support this!

It is meant to work.  Have you enabled the options in the squid.conf?

 Our squid.conf looks like this:
 auth_param ntlm program /usr/local/libexec/squid/ntlm_auth
 --helper-protocol=squid-2.5-ntlmssp -d9
 auth_param ntlm max_challenge_reuses 0
 auth_param ntlm max_challenge_lifetime 2 minutes auth_param ntlm children 2
 auth_param basic program /usr/local/libexec/squid/ntlm_auth
 --helper-protocol=squid-2.5-basic -d9
 auth_param basic children 2
 auth_param basic realm Cache NTLM Authentication auth_param basic
 credentialsttl 2 hours
 
 Anyone have any idea as to why that would happen when only using squid? Is
 there an option that we need to set to make the authenticator use ntlmv2
 only or something like we had to do for samba? Does ntlm_auth not understand
 the v2 protocol properly?

ntlm_auth understands it, however it requires that:

use_ntlm_negotiate on

be set in the squid.conf.  

 
 Onto another question, when I join the domain for the first time, I get this
 error when trying to do anything besides a wbinfo -u or wbinfo -g. Here are
 a few examples:
 
 [EMAIL PROTECTED] ~ # wbinfo -t
 checking the trust secret via RPC calls 
 failed error code was NT_STATUS_ACCESS_DENIED (0xc022) 
 Could not check secret
 
 And this from the squid log if we try and auth a user:
 [2005/10/31 11:43:36, 0] utils/ntlm_auth.c:winbind_pw_check(427)
   Login for user [EMAIL PROTECTED] failed due to [Access denied]
 [2005/10/31 11:43:36, 0] utils/ntlm_auth.c:manage_squid_ntlmssp_request(600)
   NTLMSSP BH: NT_STATUS_ACCESS_DENIED
 
 The strange thing is these errors stop happening from anywhere between 5 and
 15 minutes after joining the domain. Any ideas as to why they are occurring
 in the first place? Basically: We are able to list users, and groups - but
 wbinfo -t doesn't work until we've been logged on for 5-15 minutes
 (randomly)?

This is really odd.  It is as if the join wasn't propagated to all the
DCs in good time.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net


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

[Samba] Configuring smbfs and general samba confusion

2005-11-07 Thread John Schwartzman
My SuSE Linux 10.0 box is set up as a Samba server with WINS support.
When I try to to enable smbfs using YaST System Services (Runlevel), the
response is:

/etc/init.d/smbfs start returned 6 (program is not configured)

Mount SMB/CIFS File Systems ..unused

nmb and smb are both being started.  How do I configure smbfs?

When browsing SMB shares, I can see my workgroup and under that my Linux
box.  (My Windows boxes are missing.)  It doesn't matter whether the
firewall is on or off. 

Another curious feature is that typing smb://Wombat/ gives an error, but
smb://wombat/Temp works fine (//Wombat/Temp is a windows share).

Winbind is not included in my SuSE installation.  Do I need it?

From the Windows side,  My Linux box doesn't show up in my Windows
network, but I can access my Samba shares by setting them up as network
places.

Can anyone help?  /etc/samba/smb.conf is shown below.

Many thanks!

# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2005/11/04 13:37:02

[global]
display charset = UTF-8
workgroup = FORTE
netbios aliases = Intrepid
netbios scope = FORTE
server string = Samba 3.0
client schannel = No
server schannel = No
map to guest = Bad User
root directory = /
username map = /etc/samba/smbusers
log level = 1
log file = /var/log/samba/log.samba
paranoid server security = no
socket options = TCP_NODELAY IPTOS_LOWDELAY
hostname lookups = yes
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody 
-s /bin/false %m$
logon path = \\%L\profiles\.msprofile
logon drive = P:W
logon home = \\%L\%U\.9xprofile
lm announce = No
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = No
winbind uid = 1-2
winbind gid = 1-2
cups options = raw
case sensitive = auto
strict locking = No
domain logons = Yes
os level = 65
restrict anonymous = no
max protocol = NT
server signing = Auto
idmap gid = 1-2
idmap uid = 1-2
local master = YesT
netbios name = Intrepid
security = user

[include]
comment = Linux C/C++ include directories
path = /usr/include/

[development]
comment = Linux Development Directory - js
path = /home/js/Development/
read only = No
create mask = 0777
directory mask = 0777
inherit permissions = Yes
inherit acls = Yes
inherit owner = Yes
case sensitive = Yes

[js]
comment = js Home Directory
path = /home/js
valid users = js
admin users = root
write list = js
read only = No
directory mask = 0777
inherit permissions = Yes
inherit acls = Yes
inherit owner = Yes
case sensitive = Yes

[homes]
browseable = No

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root

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


Re: [Samba] urgent - migration samba domain from machine and version

2005-11-07 Thread Andrew Bartlett
On Tue, 2005-11-08 at 00:51 +0100, David Ballester Montolio wrote:
 scenario:
 
 server_old - Redhat 8 with samba 2.2.8a
 server_new - Debian 3.1 Sarge with samba 3.0.14a
 
 domain to be moved/migrated : DOMINIO
 smbpasswd -X server  domain in server_old


 I think that i need to 'copy' SID for domain
 server_new to SID for domain DOMINIO
 
 Any tip? what is your suggestion? need to have this
 domain up  and running as soon as possible. Data has
 been migrated yet :(

Along with the getlocalsid you already know, we have:

net setlocalsid SID

Give it a shot.  

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net


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

svn commit: samba r11546 - in branches/SAMBA_4_0/source/libcli/util: .

2005-11-07 Thread metze
Author: metze
Date: 2005-11-07 11:44:08 + (Mon, 07 Nov 2005)
New Revision: 11546

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11546

Log:
add more errno ntstatus mappings, to get more usefull errors from socket_wrapper

metze
Modified:
   branches/SAMBA_4_0/source/libcli/util/errormap.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/errormap.c
===
--- branches/SAMBA_4_0/source/libcli/util/errormap.c2005-11-07 03:05:34 UTC 
(rev 11545)
+++ branches/SAMBA_4_0/source/libcli/util/errormap.c2005-11-07 11:44:08 UTC 
(rev 11546)
@@ -1320,6 +1320,21 @@
 #ifdef EFBIG
{ EFBIG,NT_STATUS_DISK_FULL },
 #endif
+#ifdef EADDRNOTAVAIL
+   { EADDRNOTAVAIL,NT_STATUS_ADDRESS_NOT_ASSOCIATED },
+#endif
+#ifdef ESOCKTNOSUPPORT
+   { ESOCKTNOSUPPORT,NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef EAFNOSUPPORT
+   { EAFNOSUPPORT, NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef ENOPROTOOPT
+   { ENOPROTOOPT,  NT_STATUS_INVALID_PARAMETER_MIX },
+#endif
+#ifdef ENODEV
+   { ENODEV,   NT_STATUS_NO_SUCH_DEVICE },
+#endif
{ 0, NT_STATUS_UNSUCCESSFUL }
 };
 



svn commit: samba r11547 - in branches/SAMBA_4_0/source/wrepl_server: .

2005-11-07 Thread metze
Author: metze
Date: 2005-11-07 13:22:51 + (Mon, 07 Nov 2005)
New Revision: 11547

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11547

Log:
- don't do pull replication when pullIntervall is 0
- don't do push replication when pushChangeCount is 0

metze
Modified:
   branches/SAMBA_4_0/source/wrepl_server/wrepl_out_connection.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h


Changeset:
Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_out_connection.c
===
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_out_connection.c   
2005-11-07 11:44:08 UTC (rev 11546)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_out_connection.c   
2005-11-07 13:22:51 UTC (rev 11547)
@@ -236,12 +236,12 @@
struct wreplsrv_partner *cur;
 
for (cur = service-partners; cur; cur = cur-next) {
-   if (cur-type  WINSREPL_PARTNER_PULL) {
+   if ((cur-type  WINSREPL_PARTNER_PULL)  cur-pull.interval) {
cur-pull.te = 
event_add_timed(service-task-event_ctx, cur,
   timeval_zero(), 
wreplsrv_pull_handler_te, cur);
NT_STATUS_HAVE_NO_MEMORY(cur-pull.te);
}
-   if (cur-type  WINSREPL_PARTNER_PUSH) {
+   if ((cur-type  WINSREPL_PARTNER_PUSH)  
cur-push.change_count) {
cur-push.te = 
event_add_timed(service-task-event_ctx, cur,
   timeval_zero(), 
wreplsrv_push_handler_te, cur);
NT_STATUS_HAVE_NO_MEMORY(cur-push.te);

Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c
===
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c   2005-11-07 
11:44:08 UTC (rev 11546)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c   2005-11-07 
13:22:51 UTC (rev 11547)
@@ -84,14 +84,17 @@
if (partner == NULL) goto failed;
partner-service= service;
 
-   partner-address= ldb_msg_find_string(res[i], 
address, NULL);
+   partner-address= ldb_msg_find_string(res[i], 
address, NULL);
if (!partner-address) goto failed;
-   partner-name   = ldb_msg_find_string(res[i], name, 
partner-address);
-   partner-type   = ldb_msg_find_int(res[i], type, 
WINSREPL_PARTNER_BOTH);
-   partner-pull.interval  = ldb_msg_find_int(res[i], 
pullInterval, WINSREPL_DEFAULT_PULL_INTERVAL);
-   partner-pull.retry_interval = ldb_msg_find_int(res[i], 
pullRetryInterval,
-   
WINSREPL_DEFAULT_PULL_RETRY_INTERVAL);
-   partner-our_address= ldb_msg_find_string(res[i], 
ourAddress, NULL);
+   partner-name   = ldb_msg_find_string(res[i], 
name, partner-address);
+   partner-type   = ldb_msg_find_uint(res[i], 
type, WINSREPL_PARTNER_BOTH);
+   partner-pull.interval  = ldb_msg_find_uint(res[i], 
pullInterval,
+  
WINSREPL_DEFAULT_PULL_INTERVAL);
+   partner-pull.retry_interval= ldb_msg_find_uint(res[i], 
pullRetryInterval,
+  
WINSREPL_DEFAULT_PULL_RETRY_INTERVAL);
+   partner-our_address= ldb_msg_find_string(res[i], 
ourAddress, NULL);
+   partner-push.change_count  = ldb_msg_find_uint(res[i], 
pushChangeCount,
+  
WINSREPL_DEFAULT_PUSH_CHANGE_COUNT);
 
talloc_steal(partner, partner-address);
talloc_steal(partner, partner-name);

Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h
===
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h   2005-11-07 
11:44:08 UTC (rev 11546)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_server.h   2005-11-07 
13:22:51 UTC (rev 11547)
@@ -125,6 +125,8 @@
 #define WINSREPL_DEFAULT_PULL_INTERVAL (30*60)
 #define WINSREPL_DEFAULT_PULL_RETRY_INTERVAL (30)
 
+#define WINSREPL_DEFAULT_PUSH_CHANGE_COUNT (0)
+
 /*
  this represents one of our configured partners
 */



svn commit: samba-docs r853 - in trunk/Samba3-HOWTO: .

2005-11-07 Thread vlendec
Author: vlendec
Date: 2005-11-07 13:42:51 + (Mon, 07 Nov 2005)
New Revision: 853

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=853

Log:
Document recycle:touch_mtime
Modified:
   trunk/Samba3-HOWTO/TOSHARG-VFS.xml


Changeset:
Modified: trunk/Samba3-HOWTO/TOSHARG-VFS.xml
===
--- trunk/Samba3-HOWTO/TOSHARG-VFS.xml  2005-11-02 04:50:35 UTC (rev 852)
+++ trunk/Samba3-HOWTO/TOSHARG-VFS.xml  2005-11-07 13:42:51 UTC (rev 853)
@@ -386,6 +386,14 @@
/varlistentry
 
varlistentry
+   termrecycle:touch_mtime/term
+   listitempara
+indextermprimaryrecycle:touch/primary/indexterm
+   Specifies whether a file's last modify date 
date should be touched when the file is moved to the recycle bin.
+   /para/listitem
+   /varlistentry
+
+   varlistentry
termrecycle:maxsize/term
listitempara
 indextermprimaryrecycle:maxsize/primary/indexterm



svn commit: samba r11548 - in branches/SAMBA_3_0/examples/scripts: . eventlog

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 13:43:06 + (Mon, 07 Nov 2005)
New Revision: 11548

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11548

Log:
adding simple script to tail syslog and write to eventlog tdb
Added:
   branches/SAMBA_3_0/examples/scripts/eventlog/
   branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl


Changeset:
Added: branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl
===
--- branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl2005-11-07 
13:22:51 UTC (rev 11547)
+++ branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl2005-11-07 
13:43:06 UTC (rev 11548)
@@ -0,0 +1,8 @@
+while() {
+chomp();
+@le = split '\s+',$_,5;
+$ln = $le[4];
+$cname = $le[3]; 
+$outstr = sprintf TMG: %d\nTMW: %d\nEID: 1000\nETP: INFO\nECT: 0\nRS2: 
0\nCRN: 0\nUSL: 0\nSRC: Syslog\nSRN: $cname\nSTR: $ln\nDAT:\n\n,time(),time();
+print $outstr;
+}



svn commit: samba r11549 - in branches/SAMBA_3_0/examples/scripts: eventlog shares/perl

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 13:45:28 + (Mon, 07 Nov 2005)
New Revision: 11549

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11549

Log:
fixing GPL notices
Modified:
   branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl
   branches/SAMBA_3_0/examples/scripts/shares/perl/modify_samba_config.pl


Changeset:
Modified: branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl
===
--- branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl2005-11-07 
13:43:06 UTC (rev 11548)
+++ branches/SAMBA_3_0/examples/scripts/eventlog/parselog.pl2005-11-07 
13:45:28 UTC (rev 11549)
@@ -1,3 +1,27 @@
+##
+##
+##  Simple add/delete/change share command script for Samba
+##
+##  Copyright (C) Brian Moran2005.
+##
+##  This program is free software; you can redistribute it and/or modify
+##  it under the terms of the GNU General Public License as published by
+##  the Free Software Foundation; either version 2 of the License, or
+##  (at your option) any later version.
+##
+##  This program is distributed in the hope that it will be useful,
+##  but WITHOUT ANY WARRANTY; without even the implied warranty of
+##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+##  GNU General Public License for more details.
+##
+##  You should have received a copy of the GNU General Public License
+##  along with this program; if not, write to the Free Software
+##  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+##
+
+## usage: tail -f /var/log/syslog | parselog.pl | eventlogadm Application
+
 while() {
 chomp();
 @le = split '\s+',$_,5;

Modified: branches/SAMBA_3_0/examples/scripts/shares/perl/modify_samba_config.pl
===
--- branches/SAMBA_3_0/examples/scripts/shares/perl/modify_samba_config.pl  
2005-11-07 13:43:06 UTC (rev 11548)
+++ branches/SAMBA_3_0/examples/scripts/shares/perl/modify_samba_config.pl  
2005-11-07 13:45:28 UTC (rev 11549)
@@ -1,12 +1,26 @@
 #!/usr/bin/perl
 
+##
 ##
-## Simple example of how to implement a '[add|delete] share command' for
-## use with the Windows NT Server Manager. See smb.conf(5) for details
-## on the '[add|delete] share command'
+##  Simple add/delete/change share command script for Samba
 ##
-## Author : Gerald (Jerry) Carter [EMAIL PROTECTED]
+##  Copyright (C) Gerald Carter2004.
 ##
+##  This program is free software; you can redistribute it and/or modify
+##  it under the terms of the GNU General Public License as published by
+##  the Free Software Foundation; either version 2 of the License, or
+##  (at your option) any later version.
+##
+##  This program is distributed in the hope that it will be useful,
+##  but WITHOUT ANY WARRANTY; without even the implied warranty of
+##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+##  GNU General Public License for more details.
+##
+##  You should have received a copy of the GNU General Public License
+##  along with this program; if not, write to the Free Software
+##  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+##
 
 use POSIX qw(tmpnam);
 



svn commit: samba r11550 - in trunk/examples/scripts: . shares/perl

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 13:46:45 + (Mon, 07 Nov 2005)
New Revision: 11550

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11550

Log:
merging eventlog  script exampels from 3.0
Added:
   trunk/examples/scripts/eventlog/
Modified:
   trunk/examples/scripts/shares/perl/modify_samba_config.pl


Changeset:
Copied: trunk/examples/scripts/eventlog (from rev 11549, 
branches/SAMBA_3_0/examples/scripts/eventlog)

Modified: trunk/examples/scripts/shares/perl/modify_samba_config.pl
===
--- trunk/examples/scripts/shares/perl/modify_samba_config.pl   2005-11-07 
13:45:28 UTC (rev 11549)
+++ trunk/examples/scripts/shares/perl/modify_samba_config.pl   2005-11-07 
13:46:45 UTC (rev 11550)
@@ -1,12 +1,26 @@
 #!/usr/bin/perl
 
+##
 ##
-## Simple example of how to implement a '[add|delete] share command' for
-## use with the Windows NT Server Manager. See smb.conf(5) for details
-## on the '[add|delete] share command'
+##  Simple add/delete/change share command script for Samba
 ##
-## Author : Gerald (Jerry) Carter [EMAIL PROTECTED]
+##  Copyright (C) Gerald Carter2004.
 ##
+##  This program is free software; you can redistribute it and/or modify
+##  it under the terms of the GNU General Public License as published by
+##  the Free Software Foundation; either version 2 of the License, or
+##  (at your option) any later version.
+##
+##  This program is distributed in the hope that it will be useful,
+##  but WITHOUT ANY WARRANTY; without even the implied warranty of
+##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+##  GNU General Public License for more details.
+##
+##  You should have received a copy of the GNU General Public License
+##  along with this program; if not, write to the Free Software
+##  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+##
 
 use POSIX qw(tmpnam);
 



svn commit: samba r11551 - branches/SAMBA_3_0/source/libads branches/SAMBA_3_0/source/libsmb branches/SAMBA_3_0/source/utils trunk/source/libads trunk/source/libsmb trunk/source/utils

2005-11-07 Thread vlendec
Author: vlendec
Date: 2005-11-07 14:16:50 + (Mon, 07 Nov 2005)
New Revision: 11551

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11551

Log:
Add a few more initialize_krb5_error_table
Modified:
   branches/SAMBA_3_0/source/libads/kerberos.c
   branches/SAMBA_3_0/source/libads/krb5_setpw.c
   branches/SAMBA_3_0/source/libsmb/clikrb5.c
   branches/SAMBA_3_0/source/utils/net_lookup.c
   trunk/source/libads/kerberos.c
   trunk/source/libads/krb5_setpw.c
   trunk/source/libsmb/clikrb5.c
   trunk/source/utils/net_lookup.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/kerberos.c
===
--- branches/SAMBA_3_0/source/libads/kerberos.c 2005-11-07 13:46:45 UTC (rev 
11550)
+++ branches/SAMBA_3_0/source/libads/kerberos.c 2005-11-07 14:16:50 UTC (rev 
11551)
@@ -70,6 +70,7 @@
krb5_principal me;
krb5_creds my_creds;
 
+   initialize_krb5_error_table();
if ((code = krb5_init_context(ctx)))
return code;
 
@@ -155,6 +156,7 @@
krb5_context ctx = NULL;
krb5_ccache cc = NULL;
 
+   initialize_krb5_error_table();
if ((code = krb5_init_context (ctx))) {
DEBUG(3, (ads_kdestroy: kdb5_init_context failed: %s\n, 
error_message(code)));

Modified: branches/SAMBA_3_0/source/libads/krb5_setpw.c
===
--- branches/SAMBA_3_0/source/libads/krb5_setpw.c   2005-11-07 13:46:45 UTC 
(rev 11550)
+++ branches/SAMBA_3_0/source/libads/krb5_setpw.c   2005-11-07 14:16:50 UTC 
(rev 11551)
@@ -472,6 +472,7 @@
 
ZERO_STRUCT(creds);

+   initialize_krb5_error_table();
ret = krb5_init_context(context);
if (ret) {
DEBUG(1,(Failed to init krb5 context (%s)\n, 
error_message(ret)));
@@ -604,6 +605,7 @@
 krb5_creds creds;
 char *chpw_princ = NULL, *password;
 
+initialize_krb5_error_table();
 ret = krb5_init_context(context);
 if (ret) {
DEBUG(1,(Failed to init krb5 context (%s)\n, error_message(ret)));

Modified: branches/SAMBA_3_0/source/libsmb/clikrb5.c
===
--- branches/SAMBA_3_0/source/libsmb/clikrb5.c  2005-11-07 13:46:45 UTC (rev 
11550)
+++ branches/SAMBA_3_0/source/libsmb/clikrb5.c  2005-11-07 14:16:50 UTC (rev 
11551)
@@ -542,6 +542,7 @@
ENCTYPE_DES_CBC_CRC, 
ENCTYPE_NULL};

+   initialize_krb5_error_table();
retval = krb5_init_context(context);
if (retval) {
DEBUG(1,(cli_krb5_get_ticket: krb5_init_context failed 
(%s)\n, 

Modified: branches/SAMBA_3_0/source/utils/net_lookup.c
===
--- branches/SAMBA_3_0/source/utils/net_lookup.c2005-11-07 13:46:45 UTC 
(rev 11550)
+++ branches/SAMBA_3_0/source/utils/net_lookup.c2005-11-07 14:16:50 UTC 
(rev 11551)
@@ -186,6 +186,7 @@
krb5_data realm;
char **realms;
 
+   initialize_krb5_error_table();
rc = krb5_init_context(ctx);
if (rc) {
DEBUG(1,(krb5_init_context failed (%s)\n, 

Modified: trunk/source/libads/kerberos.c
===
--- trunk/source/libads/kerberos.c  2005-11-07 13:46:45 UTC (rev 11550)
+++ trunk/source/libads/kerberos.c  2005-11-07 14:16:50 UTC (rev 11551)
@@ -70,6 +70,7 @@
krb5_principal me;
krb5_creds my_creds;
 
+   initialize_krb5_error_table();
if ((code = krb5_init_context(ctx)))
return code;
 
@@ -155,6 +156,7 @@
krb5_context ctx = NULL;
krb5_ccache cc = NULL;
 
+   initialize_krb5_error_table();
if ((code = krb5_init_context (ctx))) {
DEBUG(3, (ads_kdestroy: kdb5_init_context failed: %s\n, 
error_message(code)));

Modified: trunk/source/libads/krb5_setpw.c
===
--- trunk/source/libads/krb5_setpw.c2005-11-07 13:46:45 UTC (rev 11550)
+++ trunk/source/libads/krb5_setpw.c2005-11-07 14:16:50 UTC (rev 11551)
@@ -472,6 +472,7 @@
 
ZERO_STRUCT(creds);

+   initialize_krb5_error_table();
ret = krb5_init_context(context);
if (ret) {
DEBUG(1,(Failed to init krb5 context (%s)\n, 
error_message(ret)));
@@ -604,6 +605,7 @@
 krb5_creds creds;
 char *chpw_princ = NULL, *password;
 
+initialize_krb5_error_table();
 ret = krb5_init_context(context);
 if (ret) {
DEBUG(1,(Failed to init krb5 context (%s)\n, error_message(ret)));

Modified: trunk/source/libsmb/clikrb5.c
===
--- trunk/source/libsmb/clikrb5.c   2005-11-07 13:46:45 UTC (rev 11550)
+++ trunk/source/libsmb/clikrb5.c   

Re: svn commit: samba r11522 - in branches/SAMBA_4_0/source: auth lib/ldb/ldb_ildap

2005-11-07 Thread Stefan Metzmacher
On Sat, Nov 05, 2005 at 11:13:23AM +, [EMAIL PROTECTED] wrote:
 @@ -590,6 +598,18 @@
  
   NT_STATUS_NOT_OK_RETURN(nt_status);
  
 + session_info-credentials = cli_credentials_init(session_info);
 + if (!session_info-credentials) {
 + return NT_STATUS_NO_MEMORY;
 + }
 +
 + cli_credentials_set_conf(session_info-credentials);
 + if 
 (!NT_STATUS_IS_OK(cli_credentials_set_machine_account(session_info-credentials)))
  {
 + /* perhaps no credentials, we might not be joined to a domain */
 + talloc_free(session_info-credentials);
 + session_info-credentials = NULL;
 + }
 + 

Hi Andrew,

with this we get a lot of Failed to connect '/secrets.ldb' warnings in make 
test,
the private_path() isn't initialized correctly from the ejs scripts,can you fix 
that?

metze


svn commit: samba r11552 - in branches/SAMBA_4_0/source/wrepl_server: .

2005-11-07 Thread metze
Author: metze
Date: 2005-11-07 14:34:49 + (Mon, 07 Nov 2005)
New Revision: 11552

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11552

Log:
fix indent

metze
Modified:
   branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c
===
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c   2005-11-07 
14:16:50 UTC (rev 11551)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c   2005-11-07 
14:34:49 UTC (rev 11552)
@@ -89,12 +89,12 @@
partner-name   = ldb_msg_find_string(res[i], 
name, partner-address);
partner-type   = ldb_msg_find_uint(res[i], 
type, WINSREPL_PARTNER_BOTH);
partner-pull.interval  = ldb_msg_find_uint(res[i], 
pullInterval,
-  
WINSREPL_DEFAULT_PULL_INTERVAL);
+   
WINSREPL_DEFAULT_PULL_INTERVAL);
partner-pull.retry_interval= ldb_msg_find_uint(res[i], 
pullRetryInterval,
-  
WINSREPL_DEFAULT_PULL_RETRY_INTERVAL);
+   
WINSREPL_DEFAULT_PULL_RETRY_INTERVAL);
partner-our_address= ldb_msg_find_string(res[i], 
ourAddress, NULL);
partner-push.change_count  = ldb_msg_find_uint(res[i], 
pushChangeCount,
-  
WINSREPL_DEFAULT_PUSH_CHANGE_COUNT);
+   
WINSREPL_DEFAULT_PUSH_CHANGE_COUNT);
 
talloc_steal(partner, partner-address);
talloc_steal(partner, partner-name);



svn commit: samba r11553 - in branches/SAMBA_4_0/source/utils: .

2005-11-07 Thread metze
Author: metze
Date: 2005-11-07 15:07:41 + (Mon, 07 Nov 2005)
New Revision: 11553

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11553

Log:
give an error when the lookup failed

metze
Modified:
   branches/SAMBA_4_0/source/utils/nmblookup.c


Changeset:
Modified: branches/SAMBA_4_0/source/utils/nmblookup.c
===
--- branches/SAMBA_4_0/source/utils/nmblookup.c 2005-11-07 14:34:49 UTC (rev 
11552)
+++ branches/SAMBA_4_0/source/utils/nmblookup.c 2005-11-07 15:07:41 UTC (rev 
11553)
@@ -100,7 +100,7 @@
 }
 
 /* do a single node status */
-static void do_node_status(struct nbt_name_socket *nbtsock,
+static BOOL do_node_status(struct nbt_name_socket *nbtsock,
   const char *addr)
 {
struct nbt_name_status io;
@@ -131,7 +131,10 @@
   io.out.status.statistics.unit_id[3],
   io.out.status.statistics.unit_id[4],
   io.out.status.statistics.unit_id[5]);
+   return True;
}
+
+   return False;
 }
 
 /* do a single node query */
@@ -171,13 +174,14 @@
 }
 
 
-static void process_one(const char *name)
+static BOOL process_one(const char *name)
 {
TALLOC_CTX *tmp_ctx = talloc_new(NULL);
enum nbt_name_type node_type = NBT_NAME_CLIENT;
char *node_name, *p;
struct nbt_name_socket *nbtsock;
NTSTATUS status = NT_STATUS_OK;
+   BOOL ret = True;
 
if (!options.case_sensitive) {
name = strupper_talloc(tmp_ctx, name);
@@ -205,14 +209,15 @@
status = socket_listen(nbtsock-sock, 0.0.0.0, 
NBT_NAME_SERVICE_PORT, 0, 0);
if (!NT_STATUS_IS_OK(status)) {
printf(Failed to bind to local port 137 - %s\n, 
nt_errstr(status));
-   return;
+   talloc_free(tmp_ctx);
+   return False;
}
}
 
if (options.lookup_by_ip) {
-   do_node_status(nbtsock, name);
+   ret = do_node_status(nbtsock, name);
talloc_free(tmp_ctx);
-   return;
+   return ret;
}
 
if (options.broadcast_address) {
@@ -230,16 +235,19 @@
 
if (!NT_STATUS_IS_OK(status)) {
printf(Lookup failed - %s\n, nt_errstr(status));
+   ret = False;
}
 
talloc_free(tmp_ctx);
- }
+   return ret;
+}
 
 /*
   main program
 */
 int main(int argc,char *argv[])
 {
+   BOOL ret = True;
poptContext pc;
struct poptOption long_options[] = {
POPT_AUTOHELP
@@ -288,10 +296,14 @@
while (poptPeekArg(pc)) {
const char *name = poptGetArg(pc);
 
-   process_one(name);
+   ret = process_one(name);
}
 
poptFreeContext(pc);
 
+   if (!ret) {
+   return 1;
+   }
+
return 0;
 }



svn commit: samba r11554 - in branches/SAMBA_4_0/source/torture/local: .

2005-11-07 Thread metze
Author: metze
Date: 2005-11-07 15:32:52 + (Mon, 07 Nov 2005)
New Revision: 11554

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11554

Log:
make us able to run without depending on 127.0.0.1

metze
Modified:
   branches/SAMBA_4_0/source/torture/local/socket.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/socket.c
===
--- branches/SAMBA_4_0/source/torture/local/socket.c2005-11-07 15:07:41 UTC 
(rev 11553)
+++ branches/SAMBA_4_0/source/torture/local/socket.c2005-11-07 15:32:52 UTC 
(rev 11554)
@@ -57,12 +57,13 @@
CHECK_STATUS(status, NT_STATUS_OK);
talloc_steal(mem_ctx, sock2);
 
-   status = socket_listen(sock1, 127.0.0.1, 0, 0, 0);
+   status = socket_listen(sock1, iface_best_ip(127.0.0.1), 0, 0, 0);
CHECK_STATUS(status, NT_STATUS_OK);
 
srv_addr = socket_get_my_addr(sock1, mem_ctx);
-   if (srv_addr == NULL || strcmp(srv_addr, 127.0.0.1) != 0) {
-   printf(Expected server address of 127.0.0.1 but got %s\n, 
srv_addr);
+   if (srv_addr == NULL || strcmp(srv_addr, iface_best_ip(127.0.0.1)) != 
0) {
+   printf(Expected server address of %s but got %s\n,
+   iface_best_ip(127.0.0.1), srv_addr);
return False;
}
 
@@ -152,12 +153,13 @@
CHECK_STATUS(status, NT_STATUS_OK);
talloc_steal(mem_ctx, sock2);
 
-   status = socket_listen(sock1, 127.0.0.1, 0, 0, 0);
+   status = socket_listen(sock1, iface_best_ip(127.0.0.1), 0, 0, 0);
CHECK_STATUS(status, NT_STATUS_OK);
 
srv_addr = socket_get_my_addr(sock1, mem_ctx);
-   if (srv_addr == NULL || strcmp(srv_addr, 127.0.0.1) != 0) {
-   printf(Expected server address of 127.0.0.1 but got %s\n, 
srv_addr);
+   if (srv_addr == NULL || strcmp(srv_addr, iface_best_ip(127.0.0.1)) != 
0) {
+   printf(Expected server address of %s but got %s\n,
+   iface_best_ip(127.0.0.1), srv_addr);
return False;
}
 



svn commit: samba r11555 - in branches/SAMBA_4_0/source: lib/socket_wrapper script/tests

2005-11-07 Thread metze
Author: metze
Date: 2005-11-07 15:36:51 + (Mon, 07 Nov 2005)
New Revision: 11555

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11555

Log:
- change socket_wrapper to support multiple IP's
- SOCKET_WRAPPER_DEFAULT_IFACE=X specifies the default interface
  for 127.0.0.X
- we now use multiple interfaces for smbtorture in make test
  127.0.0.26-127.0.0.31
- and 127.0.0.1 only for smbd

the are more work needed for better support for broacast messages...
but this is enough for the winsrepl tests

metze
Modified:
   branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c
   branches/SAMBA_4_0/source/script/tests/selftest.sh
   branches/SAMBA_4_0/source/script/tests/test_nbt.sh


Changeset:
Sorry, the patch is too large (516 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11555


svn commit: samba r11556 - branches/SAMBA_3_0/source/torture trunk/source/torture

2005-11-07 Thread vlendec
Author: vlendec
Date: 2005-11-07 16:00:35 + (Mon, 07 Nov 2005)
New Revision: 11556

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11556

Log:
Fix make everything
Modified:
   branches/SAMBA_3_0/source/torture/locktest.c
   trunk/source/torture/locktest.c


Changeset:
Modified: branches/SAMBA_3_0/source/torture/locktest.c
===
--- branches/SAMBA_3_0/source/torture/locktest.c2005-11-07 15:36:51 UTC 
(rev 11555)
+++ branches/SAMBA_3_0/source/torture/locktest.c2005-11-07 16:00:35 UTC 
(rev 11556)
@@ -99,7 +99,7 @@
 
 static struct record *recorded;
 
-static void print_brl(SMB_DEV_T dev, SMB_INO_T ino, int pid, 
+static void print_brl(SMB_DEV_T dev, SMB_INO_T ino, struct process_id pid, 
  enum brl_type lock_type,
  br_off start, br_off size)
 {
@@ -117,8 +117,8 @@
}
 #endif
 
-   printf(%6d   %05x:%05x%s  %.0f:%.0f(%.0f)\n, 
-  (int)pid, (int)dev, (int)ino, 
+   printf(%s   %05x:%05x%s  %.0f:%.0f(%.0f)\n, 
+  procid_str_static(pid), (int)dev, (int)ino, 
   lock_type==READ_LOCK?R:W,
   (double)start, (double)start+size-1,(double)size);
 

Modified: trunk/source/torture/locktest.c
===
--- trunk/source/torture/locktest.c 2005-11-07 15:36:51 UTC (rev 11555)
+++ trunk/source/torture/locktest.c 2005-11-07 16:00:35 UTC (rev 11556)
@@ -99,7 +99,7 @@
 
 static struct record *recorded;
 
-static void print_brl(SMB_DEV_T dev, SMB_INO_T ino, int pid, 
+static void print_brl(SMB_DEV_T dev, SMB_INO_T ino, struct process_id pid, 
  enum brl_type lock_type,
  br_off start, br_off size)
 {
@@ -117,8 +117,8 @@
}
 #endif
 
-   printf(%6d   %05x:%05x%s  %.0f:%.0f(%.0f)\n, 
-  (int)pid, (int)dev, (int)ino, 
+   printf(%s   %05x:%05x%s  %.0f:%.0f(%.0f)\n, 
+  procid_str_static(pid), (int)dev, (int)ino, 
   lock_type==READ_LOCK?R:W,
   (double)start, (double)start+size-1,(double)size);
 



svn commit: samba r11557 - in trunk/source: param registry

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 18:36:46 + (Mon, 07 Nov 2005)
New Revision: 11557

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11557

Log:
removing 'counters dir' smb.conf option (defaulting to 
lp_lockdir()/perfmon/*tdb)
Modified:
   trunk/source/param/loadparm.c
   trunk/source/registry/reg_perfcount.c


Changeset:
Sorry, the patch is too large (491 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11557


svn commit: samba r11558 - in trunk/examples: . perfcounter

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 18:38:34 + (Mon, 07 Nov 2005)
New Revision: 11558

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11558

Log:
adding perf monitor daemon for linux
Added:
   trunk/examples/perfcounter/
   trunk/examples/perfcounter/Makefile
   trunk/examples/perfcounter/perf.h
   trunk/examples/perfcounter/perf_writer.c
   trunk/examples/perfcounter/perf_writer_cpu.c
   trunk/examples/perfcounter/perf_writer_disk.c
   trunk/examples/perfcounter/perf_writer_mem.c
   trunk/examples/perfcounter/perf_writer_process.c
   trunk/examples/perfcounter/perf_writer_util.c


Changeset:
Sorry, the patch is too large (1200 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11558


svn commit: samba r11559 - in trunk/source/lib: .

2005-11-07 Thread jra
Author: jra
Date: 2005-11-07 19:17:58 + (Mon, 07 Nov 2005)
New Revision: 11559

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11559

Log:
Fix core dump if setmntent returns NULL.
Pointed out by Jay Fanlason @ Red Hat.
Jeremy.

Modified:
   trunk/source/lib/sysquotas.c


Changeset:
Modified: trunk/source/lib/sysquotas.c
===
--- trunk/source/lib/sysquotas.c2005-11-07 18:38:34 UTC (rev 11558)
+++ trunk/source/lib/sysquotas.c2005-11-07 19:17:58 UTC (rev 11559)
@@ -67,6 +67,9 @@
devno = S.st_dev ;
 
fp = setmntent(MOUNTED,r);
+   if (fp == NULL) {
+   return -1;
+   }
   
while ((mnt = getmntent(fp))) {
if ( sys_stat(mnt-mnt_dir,S) == -1 )



svn commit: samba r11560 - in branches/SAMBA_3_0/source/lib: .

2005-11-07 Thread jra
Author: jra
Date: 2005-11-07 19:18:00 + (Mon, 07 Nov 2005)
New Revision: 11560

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11560

Log:
Fix core dump if setmntent returns NULL.
Pointed out by Jay Fanlason @ Red Hat.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/lib/sysquotas.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/sysquotas.c
===
--- branches/SAMBA_3_0/source/lib/sysquotas.c   2005-11-07 19:17:58 UTC (rev 
11559)
+++ branches/SAMBA_3_0/source/lib/sysquotas.c   2005-11-07 19:18:00 UTC (rev 
11560)
@@ -67,6 +67,9 @@
devno = S.st_dev ;
 
fp = setmntent(MOUNTED,r);
+   if (fp == NULL) {
+   return -1;
+   }
   
while ((mnt = getmntent(fp))) {
if ( sys_stat(mnt-mnt_dir,S) == -1 )



svn commit: samba-web r845 - in trunk/news/calendar: .

2005-11-07 Thread deryck
Author: deryck
Date: 2005-11-07 21:16:38 + (Mon, 07 Nov 2005)
New Revision: 845

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=845

Log:
Adding info to the Team calendar about Jerry and I 
at LISA '05 next month.

deryck

Added:
   trunk/news/calendar/LISA_05.txt
Modified:
   trunk/news/calendar/index.html
   trunk/news/calendar/showDate.js


Changeset:
Added: trunk/news/calendar/LISA_05.txt
===
--- trunk/news/calendar/LISA_05.txt 2005-10-25 15:14:14 UTC (rev 844)
+++ trunk/news/calendar/LISA_05.txt 2005-11-07 21:16:38 UTC (rev 845)
@@ -0,0 +1,8 @@
+December 4-9, LISA '05
+
+The 19th Large Installation System Addministration Conference 
+will be in San Diego, CA December 4-9.  The conference offers 
+a training program, tech sessions, workshops, BOFs, and more.
+Jerry Carter will be giving tutorials on Kerberos, LDAP, Ethereal,
+and Samba.  Deryck Hodge will be giving a tutorial on using
+Google to build web applications. 

Modified: trunk/news/calendar/index.html
===
--- trunk/news/calendar/index.html  2005-10-25 15:14:14 UTC (rev 844)
+++ trunk/news/calendar/index.html  2005-11-07 21:16:38 UTC (rev 845)
@@ -372,12 +372,12 @@
td3/td
/tr
 tr
-   td4/td
-   td5/td
-   td6/td
-   td7/td
-   td8/td
-   td9/td
+   tda href=LISA_05.txt onclick=showDate(37); return 
false4/a/td
+   tda href=LISA_05.txt onclick=showDate(37); return 
false5/a/td
+   tda href=LISA_05.txt onclick=showDate(37); return 
false6/a/td
+   tda href=LISA_05.txt onclick=showDate(37); return 
false7/a/td
+   tda href=LISA_05.txt onclick=showDate(37); return 
false8/a/td
+   tda href=LISA_05.txt onclick=showDate(37); return 
false9/a/td
td10/td
/tr
tr

Modified: trunk/news/calendar/showDate.js
===
--- trunk/news/calendar/showDate.js 2005-10-25 15:14:14 UTC (rev 844)
+++ trunk/news/calendar/showDate.js 2005-11-07 21:16:38 UTC (rev 845)
@@ -26,6 +26,7 @@
 allEvents[34] = 'pSeptember 19th - Chicago, IL./ppJohn H. Terpstra leads 
two free 3-hour seminars. The morning seminar, geared for today\'s IT consumer, 
is titled Taking control of your business.  The afternoon seminar, geared for 
today\'s IT service provider, is titled Making service profitable again.  
Location is TBD.  Contact Alex Monteiro at [EMAIL PROTECTED] for reservations 
and details./p'
 allEvents[35] = 'pSeptember 20-23 - Chicago, IL./ppSamba-3 By Example:  
Building a Network Powerhouse./ppJohn H. Terpstra instructs our spotlight 
training workshop where delegates build a powerhouse network from the ground-up 
and uncover the secrets of properly maintaining it./p'
 allEvents[36] = 'pJanuary 4-7 - Honolulu, HI./ppSamba-3 By Example:  
Building a Network Powerhouse./ppJohn H. Terpstra instructs our spotlight 
training workshop where delegates build a powerhouse network from the ground-up 
and uncover the secrets of properly maintaining it./p'
+allEvents[37] = 'pDecember 4-9, LISA \'05/ppThe 19th Large Installation 
System Addministration Conference will be in San Diego, CA December 4-9.  The 
conference offers a training program, tech sessions, workshops, BOFs, and 
more./ppJerry Carter will be giving tutorials on Kerberos, LDAP, Ethereal, 
and Samba.  Deryck Hodge will be giving a tutorial on using Google to build web 
applications./p' 
 
 
 function showDate(thisDate) {



svn commit: samba-web r846 - in trunk/news/team: .

2005-11-07 Thread deryck
Author: deryck
Date: 2005-11-07 21:28:37 + (Mon, 07 Nov 2005)
New Revision: 846

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=846

Log:
Adding news announcment about calendar update.

deryck

Added:
   trunk/news/team/cal_update_07Nov05.html


Changeset:
Added: trunk/news/team/cal_update_07Nov05.html
===
--- trunk/news/team/cal_update_07Nov05.html 2005-11-07 21:16:38 UTC (rev 
845)
+++ trunk/news/team/cal_update_07Nov05.html 2005-11-07 21:28:37 UTC (rev 
846)
@@ -0,0 +1,16 @@
+h3a name=cal_update_07Nov05Samba Team Calendar Updated/a/h3 
+
+div class=article
+  pThe Samba Team calendar has been updated.  See the 
+  a href=/samba/news/calendar/Team calendar/a for information
+  on Jerry Carter and Deryck Hodge at LISA '05 December 4-9./p
+
+  pThe Samba Team calendar is not an endorsement of any individual 
+  speaker or event. Its purpose is to make the Samba community aware 
+  of a wide variety of events, as well as to make available a partial 
+  record of Samba Team activity./p
+
+  pNew dates will be added to the calendar as they become available./p
+/div
+
+   



svn commit: samba r11561 - in branches/tmp/samba4_ldap_controls/source: auth auth/credentials auth/gensec dsdb/samdb dsdb/samdb/ldb_modules kdc ldap_server lib lib/ldb/common lib/ldb/include lib/ldb/l

2005-11-07 Thread idra
Author: idra
Date: 2005-11-07 21:41:02 + (Mon, 07 Nov 2005)
New Revision: 11561

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11561

Log:

Finally this passes all make test :-)


Removed:
   branches/tmp/samba4_ldap_controls/source/auth/auth_domain.c
Modified:
   branches/tmp/samba4_ldap_controls/source/auth/config.mk
   branches/tmp/samba4_ldap_controls/source/auth/credentials/credentials_ntlm.c
   branches/tmp/samba4_ldap_controls/source/auth/gensec/schannel_state.c
   branches/tmp/samba4_ldap_controls/source/dsdb/samdb/cracknames.c
   branches/tmp/samba4_ldap_controls/source/dsdb/samdb/ldb_modules/proxy.c
   branches/tmp/samba4_ldap_controls/source/dsdb/samdb/ldb_modules/samldb.c
   branches/tmp/samba4_ldap_controls/source/kdc/hdb-ldb.c
   branches/tmp/samba4_ldap_controls/source/kdc/kpasswdd.c
   branches/tmp/samba4_ldap_controls/source/ldap_server/ldap_rootdse.c
   branches/tmp/samba4_ldap_controls/source/ldap_server/ldap_simple_ldb.c
   branches/tmp/samba4_ldap_controls/source/lib/gendb.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/common/ldb.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/common/ldb_modules.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/include/ldb.h
   branches/tmp/samba4_ldap_controls/source/lib/ldb/ldb_ildap/ldb_ildap.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/ldb_ldap/ldb_ldap.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/ldb_tdb/ldb_index.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/ldb_tdb/ldb_search.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/ldb_tdb/ldb_tdb.h
   branches/tmp/samba4_ldap_controls/source/lib/ldb/modules/ldb_map.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/modules/operational.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/modules/schema.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/modules/skel.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/tools/ldbdel.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/tools/ldbedit.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/tools/ldbsearch.c
   branches/tmp/samba4_ldap_controls/source/lib/ldb/tools/ldbtest.c
   branches/tmp/samba4_ldap_controls/source/lib/registry/reg_backend_ldb.c
   branches/tmp/samba4_ldap_controls/source/libnet/libnet_join.c
   branches/tmp/samba4_ldap_controls/source/librpc/idl/misc.idl
   branches/tmp/samba4_ldap_controls/source/librpc/idl/samr.idl
   branches/tmp/samba4_ldap_controls/source/nbt_server/wins/winsdb.c
   branches/tmp/samba4_ldap_controls/source/rpc_server/samr/samr_password.c
   branches/tmp/samba4_ldap_controls/source/script/tests/test_posix.sh
   branches/tmp/samba4_ldap_controls/source/scripting/ejs/smbcalls_auth.c
   branches/tmp/samba4_ldap_controls/source/scripting/ejs/smbcalls_ldb.c
   branches/tmp/samba4_ldap_controls/source/wrepl_server/wrepl_in_call.c
   branches/tmp/samba4_ldap_controls/source/wrepl_server/wrepl_server.c


Changeset:
Sorry, the patch is too large (2803 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11561


svn commit: samba-web r847 - in trunk/news: calendar team

2005-11-07 Thread deryck
Author: deryck
Date: 2005-11-07 21:46:04 + (Mon, 07 Nov 2005)
New Revision: 847

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=847

Log:
Add info on Volker being at LinuxWorld Frankfurt.
Add a link to LISA website I missed earlier.

deryck

Added:
   trunk/news/calendar/linuxworld_frankfurt_05.txt
Modified:
   trunk/news/calendar/LISA_05.txt
   trunk/news/calendar/index.html
   trunk/news/calendar/showDate.js
   trunk/news/team/cal_update_07Nov05.html


Changeset:
Modified: trunk/news/calendar/LISA_05.txt
===
--- trunk/news/calendar/LISA_05.txt 2005-11-07 21:28:37 UTC (rev 846)
+++ trunk/news/calendar/LISA_05.txt 2005-11-07 21:46:04 UTC (rev 847)
@@ -3,6 +3,8 @@
 The 19th Large Installation System Addministration Conference 
 will be in San Diego, CA December 4-9.  The conference offers 
 a training program, tech sessions, workshops, BOFs, and more.
+
 Jerry Carter will be giving tutorials on Kerberos, LDAP, Ethereal,
 and Samba.  Deryck Hodge will be giving a tutorial on using
-Google to build web applications. 
+Google to build web applications.  See the conference website
+http://www.usenix.org/events/lisa05/ for more info.

Modified: trunk/news/calendar/index.html
===
--- trunk/news/calendar/index.html  2005-11-07 21:28:37 UTC (rev 846)
+++ trunk/news/calendar/index.html  2005-11-07 21:46:04 UTC (rev 847)
@@ -332,7 +332,7 @@
tr
td13/td
td14/td
-   td15/td
+   tda href=linuxworld_frankfurt_05.txt 
onclick=showDate(38); return false15/a/td
td16/td
td17/td
td18/td

Added: trunk/news/calendar/linuxworld_frankfurt_05.txt
===
--- trunk/news/calendar/linuxworld_frankfurt_05.txt 2005-11-07 21:28:37 UTC 
(rev 846)
+++ trunk/news/calendar/linuxworld_frankfurt_05.txt 2005-11-07 21:46:04 UTC 
(rev 847)
@@ -0,0 +1,6 @@
+November 15, LinuxWorld Conference  Expo Frankfurt 2005
+
+Volker Lendecke will be giving a talk on the current status
+of Samba3 and Samba4 development at this LinuxWorld event.  
+The conference program is available at 
+http://www.linuxworldexpo.de/04_03_ix.php?ID=97.

Modified: trunk/news/calendar/showDate.js
===
--- trunk/news/calendar/showDate.js 2005-11-07 21:28:37 UTC (rev 846)
+++ trunk/news/calendar/showDate.js 2005-11-07 21:46:04 UTC (rev 847)
@@ -26,7 +26,8 @@
 allEvents[34] = 'pSeptember 19th - Chicago, IL./ppJohn H. Terpstra leads 
two free 3-hour seminars. The morning seminar, geared for today\'s IT consumer, 
is titled Taking control of your business.  The afternoon seminar, geared for 
today\'s IT service provider, is titled Making service profitable again.  
Location is TBD.  Contact Alex Monteiro at [EMAIL PROTECTED] for reservations 
and details./p'
 allEvents[35] = 'pSeptember 20-23 - Chicago, IL./ppSamba-3 By Example:  
Building a Network Powerhouse./ppJohn H. Terpstra instructs our spotlight 
training workshop where delegates build a powerhouse network from the ground-up 
and uncover the secrets of properly maintaining it./p'
 allEvents[36] = 'pJanuary 4-7 - Honolulu, HI./ppSamba-3 By Example:  
Building a Network Powerhouse./ppJohn H. Terpstra instructs our spotlight 
training workshop where delegates build a powerhouse network from the ground-up 
and uncover the secrets of properly maintaining it./p'
-allEvents[37] = 'pDecember 4-9, LISA \'05/ppThe 19th Large Installation 
System Addministration Conference will be in San Diego, CA December 4-9.  The 
conference offers a training program, tech sessions, workshops, BOFs, and 
more./ppJerry Carter will be giving tutorials on Kerberos, LDAP, Ethereal, 
and Samba.  Deryck Hodge will be giving a tutorial on using Google to build web 
applications./p' 
+allEvents[37] = 'pDecember 4-9, LISA \'05/ppThe 19th Large Installation 
System Addministration Conference will be in San Diego, CA December 4-9.  The 
conference offers a training program, tech sessions, workshops, BOFs, and 
more./ppJerry Carter will be giving tutorials on Kerberos, LDAP, Ethereal, 
and Samba.  Deryck Hodge will be giving a tutorial on using Google to build web 
applications.  See the a 
href=http://www.usenix.org/events/lisa05/;conference website/a for more 
info./p'
+allEvents[38] = 'pNovember 15, LinuxWorld Conference  Expo Frankfurt 
2005/ppVolker Lendecke will be giving a talk on the current status of 
Samba3 and Samba4 development at this LinuxWorld event.  The conference program 
is available at a 
href=http://www.linuxworldexpo.de/04_03_ix.php?ID=97;http://www.linuxworldexpo.de/04_03_ix.php?ID=97/a./p'
 
 
 function showDate(thisDate) {

Modified: trunk/news/team/cal_update_07Nov05.html

svn commit: samba r11562 - in trunk/examples/perfcounter: .

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 22:09:08 + (Mon, 07 Nov 2005)
New Revision: 11562

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11562

Log:
* change name of perf_writer to perfcount
* add simple init script
* add perfcount binaryy to svn ignore list


Added:
   trunk/examples/perfcounter/perfcountd.init
Modified:
   trunk/examples/perfcounter/
   trunk/examples/perfcounter/Makefile


Changeset:

Property changes on: trunk/examples/perfcounter
___
Name: svn:ignore
   + perfcount


Modified: trunk/examples/perfcounter/Makefile
===
--- trunk/examples/perfcounter/Makefile 2005-11-07 21:41:02 UTC (rev 11561)
+++ trunk/examples/perfcounter/Makefile 2005-11-07 22:09:08 UTC (rev 11562)
@@ -4,7 +4,7 @@
 CFLAGS = -g -I$(SAMBA_SRC_DIR)/include -I$(TDB_SRC_DIR)
 CC = gcc
 
-PROGS = perf_writer
+PROGS = perfcount
 TDB_OBJ = $(TDB_SRC_DIR)/tdb.o $(TDB_SRC_DIR)/spinlock.o 
$(TDB_SRC_DIR)/tdbback.o
 PERF_WRITER_OBJ = perf_writer.o perf_writer_mem.o perf_writer_util.o 
perf_writer_cpu.o perf_writer_process.o perf_writer_disk.o
 
@@ -13,8 +13,8 @@
 $(TDB_OBJ):
cd $(TDB_SRC_DIR)  make
 
-perf_writer: $(PERF_WRITER_OBJ) $(TDB_OBJ)
-   $(CC) $(CFLAGS) -o perf_writer $(PERF_WRITER_OBJ) $(TDB_OBJ)
+perfcount: $(PERF_WRITER_OBJ) $(TDB_OBJ)
+   $(CC) $(CFLAGS) -o perfcount $(PERF_WRITER_OBJ) $(TDB_OBJ)
 
 clean:
rm -f $(PROGS) *.o *~ *% core

Added: trunk/examples/perfcounter/perfcountd.init
===
--- trunk/examples/perfcounter/perfcountd.init  2005-11-07 21:41:02 UTC (rev 
11561)
+++ trunk/examples/perfcounter/perfcountd.init  2005-11-07 22:09:08 UTC (rev 
11562)
@@ -0,0 +1,44 @@
+#!/bin/sh
+#
+# This file should have uid root, gid sys and chmod 744
+#
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+killproc() {# kill the named process(es)
+pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print 
$2}'`
+if [ $pid !=  ]; then
+   kill $pid
+   fi
+}
+
+# Start/stop processes 
+
+case $1 in
+start)
+   /opt/samba/bin/perfcount -d -f /var/lib/samba/perfmon 2 /dev/null
+   if [ $? -ne 0 ]; then
+   echo Failed!
+   exit 1
+   fi
+   echo done!
+   ;;
+stop)
+   killproc perfcount
+   ;;
+
+restart)
+   killproc perfcount
+   /opt/samba/bin/perfcount -d -f /var/lib/samba/perfmon 2 /dev/null
+if [ $? -ne 0 ]; then
+echo Failed!
+exit 1
+fi
+
+   echo done!
+   ;;
+
+*)
+   echo Usage: /etc/init.d/samba { start | stop | restart }
+   ;;
+esac


Property changes on: trunk/examples/perfcounter/perfcountd.init
___
Name: svn:executable
   + *



svn commit: samba r11563 - in trunk/source/services: .

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 22:17:03 + (Mon, 07 Nov 2005)
New Revision: 11563

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11563

Log:
adding perfcountd init script to known services
Modified:
   trunk/source/services/services_db.c


Changeset:
Modified: trunk/source/services/services_db.c
===
--- trunk/source/services/services_db.c 2005-11-07 22:09:08 UTC (rev 11562)
+++ trunk/source/services/services_db.c 2005-11-07 22:17:03 UTC (rev 11563)
@@ -71,6 +71,7 @@
   { apache,NULL, HTTP Server, NULL },
   { autofs,NULL, Automounter, NULL },
   { squid, NULL, Web Cache Proxy , NULL },
+  { perfcountd,NULL, Performance Monitoring Daemon, NULL },
   { NULL, NULL, NULL, NULL }
 };
 



svn commit: samba r11564 - in trunk/source/registry: .

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-07 22:34:32 + (Mon, 07 Nov 2005)
New Revision: 11564

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11564

Log:
add a simple init function to the perfcounter code that will ensure
that the $(lockdir)/perfmon/ gets created at smbd start time.


Modified:
   trunk/source/registry/reg_frontend.c
   trunk/source/registry/reg_perfcount.c


Changeset:
Modified: trunk/source/registry/reg_frontend.c
===
--- trunk/source/registry/reg_frontend.c2005-11-07 22:17:03 UTC (rev 
11563)
+++ trunk/source/registry/reg_frontend.c2005-11-07 22:34:32 UTC (rev 
11564)
@@ -131,6 +131,7 @@
 
svcctl_init_keys();
eventlog_init_keys();
+   perfcount_init_keys();
 
/* close and let each smbd open up as necessary */
 

Modified: trunk/source/registry/reg_perfcount.c
===
--- trunk/source/registry/reg_perfcount.c   2005-11-07 22:17:03 UTC (rev 
11563)
+++ trunk/source/registry/reg_perfcount.c   2005-11-07 22:34:32 UTC (rev 
11564)
@@ -27,6 +27,7 @@
 
 #define PERFCOUNT_MAX_LEN 256
 
+#define PERFCOUNTDIR   perfmon
 #define NAMES_DB   names.tdb
 #define DATA_DBdata.tdb
 
@@ -41,7 +42,7 @@
if ( !dbname )
return NULL;

-   fstr_sprintf( path, perfmon/%s, dbname );
+   fstr_sprintf( path, %s/%s, PERFCOUNTDIR, dbname );

pstrcpy( fname, lock_path( path ) );

@@ -51,6 +52,21 @@
 /*
 */
 
+void perfcount_init_keys( void )
+{
+   char *p = lock_path(PERFCOUNTDIR);
+
+   /* no registry keys; just create the perfmon directory */
+   
+   if ( !directory_exist( p, NULL ) )
+   mkdir( p, 0755 );
+   
+   return;
+}
+
+/*
+*/
+
 uint32 reg_perfcount_get_base_index(void)
 {
const char *fname = counters_directory( NAMES_DB );



svn commit: samba r11565 - in trunk/source/nmbd: .

2005-11-07 Thread jra
Author: jra
Date: 2005-11-07 23:28:40 + (Mon, 07 Nov 2005)
New Revision: 11565

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11565

Log:
From metze. Use interpret_addr(lp_socket_address()) for port 138.
Jeremy.

Modified:
   trunk/source/nmbd/nmbd.c


Changeset:
Modified: trunk/source/nmbd/nmbd.c
===
--- trunk/source/nmbd/nmbd.c2005-11-07 22:34:32 UTC (rev 11564)
+++ trunk/source/nmbd/nmbd.c2005-11-07 23:28:40 UTC (rev 11565)
@@ -632,7 +632,9 @@
else
ClientNMB = 0;
   
-   ClientDGRAM = open_socket_in(SOCK_DGRAM,DGRAM_PORT,3,0,True);
+   ClientDGRAM = open_socket_in(SOCK_DGRAM, DGRAM_PORT,
+  3, 
interpret_addr(lp_socket_address()),
+  True);
 
if ( ClientNMB == -1 )
return( False );



svn commit: samba r11566 - in branches/SAMBA_3_0/source/nmbd: .

2005-11-07 Thread jra
Author: jra
Date: 2005-11-07 23:28:42 + (Mon, 07 Nov 2005)
New Revision: 11566

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11566

Log:
From metze. Use interpret_addr(lp_socket_address()) for port 138.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/nmbd/nmbd.c


Changeset:
Modified: branches/SAMBA_3_0/source/nmbd/nmbd.c
===
--- branches/SAMBA_3_0/source/nmbd/nmbd.c   2005-11-07 23:28:40 UTC (rev 
11565)
+++ branches/SAMBA_3_0/source/nmbd/nmbd.c   2005-11-07 23:28:42 UTC (rev 
11566)
@@ -632,7 +632,9 @@
else
ClientNMB = 0;
   
-   ClientDGRAM = open_socket_in(SOCK_DGRAM,DGRAM_PORT,3,0,True);
+   ClientDGRAM = open_socket_in(SOCK_DGRAM, DGRAM_PORT,
+  3, 
interpret_addr(lp_socket_address()),
+  True);
 
if ( ClientNMB == -1 )
return( False );



Build status as of Tue Nov 8 00:00:02 2005

2005-11-07 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2005-11-07 
00:00:08.0 +
+++ /home/build/master/cache/broken_results.txt 2005-11-08 00:00:11.0 
+
@@ -1,17 +1,17 @@
-Build status as of Mon Nov  7 00:00:02 2005
+Build status as of Tue Nov  8 00:00:02 2005
 
 Build counts:
 Tree Total  Broken Panic 
-ccache   10 2  0 
-distcc   10 1  0 
-lorikeet-heimdal 30 29 0 
-ppp  16 0  0 
-rsync34 2  0 
+ccache   11 2  0 
+distcc   11 1  0 
+lorikeet-heimdal 33 32 0 
+ppp  18 0  0 
+rsync36 2  0 
 samba3  0  0 
 samba-docs   0  0  0 
-samba4   35 18 3 
-samba_3_034 5  0 
+samba4   36 20 3 
+samba_3_036 5  0 
 smb-build27 5  0 
-talloc   9  4  0 
-tdb  9  2  0 
+talloc   11 5  0 
+tdb  10 2  0 
 


svn commit: samba r11567 - in branches/SAMBA_4_0/source: auth/gensec dsdb/samdb dsdb/samdb/ldb_modules kdc ldap_server lib lib/ldb/common lib/ldb/include lib/ldb/ldb_ildap lib/ldb/ldb_ldap lib/ldb/ldb

2005-11-07 Thread idra
Author: idra
Date: 2005-11-08 00:11:45 + (Tue, 08 Nov 2005)
New Revision: 11567

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11567

Log:

Ldb API change patch.

This patch changes the way lsb_search is called and the meaning of the returned 
integer.
The last argument of ldb_search is changed from struct ldb_message to struct 
ldb_result
which contains a pointer to a struct ldb_message list and a count of the number 
of messages.
The return is not the count of messages anymore but instead it is an ldb error 
value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to 
change a good
amount of places. I also tried to double check all my changes being sure that 
the calling
functions would still behave as before. But this patch is big enough that I 
fear some bug
may have been introduced anyway even if it passes the test suite. So if you are 
currently
working on any file being touched please give it a deep look and blame me for 
any error.

Simo.



Modified:
   branches/SAMBA_4_0/source/auth/gensec/schannel_state.c
   branches/SAMBA_4_0/source/dsdb/samdb/cracknames.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/objectguid.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/proxy.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c
   branches/SAMBA_4_0/source/kdc/hdb-ldb.c
   branches/SAMBA_4_0/source/ldap_server/ldap_rootdse.c
   branches/SAMBA_4_0/source/ldap_server/ldap_simple_ldb.c
   branches/SAMBA_4_0/source/lib/gendb.c
   branches/SAMBA_4_0/source/lib/ldb/common/ldb.c
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_modules.c
   branches/SAMBA_4_0/source/lib/ldb/include/ldb.h
   branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h
   branches/SAMBA_4_0/source/lib/ldb/ldb_ildap/ldb_ildap.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_ldap/ldb_ldap.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_search.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.h
   branches/SAMBA_4_0/source/lib/ldb/modules/ldb_map.c
   branches/SAMBA_4_0/source/lib/ldb/modules/operational.c
   branches/SAMBA_4_0/source/lib/ldb/modules/rdn_name.c
   branches/SAMBA_4_0/source/lib/ldb/modules/schema.c
   branches/SAMBA_4_0/source/lib/ldb/modules/skel.c
   branches/SAMBA_4_0/source/lib/ldb/tests/slapd.conf
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbdel.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbedit.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbsearch.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbtest.c
   branches/SAMBA_4_0/source/lib/registry/reg_backend_ldb.c
   branches/SAMBA_4_0/source/lib/tdb/include/tdbconfig.h.in
   branches/SAMBA_4_0/source/lib/util_str.c
   branches/SAMBA_4_0/source/libnet/libnet_join.c
   branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
   branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_in_call.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c


Changeset:
Sorry, the patch is too large (4201 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11567


svn commit: samba r11569 - in trunk/source/registry: .

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-08 01:56:31 + (Tue, 08 Nov 2005)
New Revision: 11569

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11569

Log:
getting rid of long long in favor of SMB_BIG_[U]INT
Modified:
   trunk/source/registry/reg_perfcount.c


Changeset:
Modified: trunk/source/registry/reg_perfcount.c
===
--- trunk/source/registry/reg_perfcount.c   2005-11-08 01:17:41 UTC (rev 
11568)
+++ trunk/source/registry/reg_perfcount.c   2005-11-08 01:56:31 UTC (rev 
11569)
@@ -464,7 +464,7 @@
 /*
 */
 
-static uint32 _reg_perfcount_compute_scale(long long int data)
+static uint32 _reg_perfcount_compute_scale(SMB_BIG_INT data)
 {
int scale = 0;
if(data == 0)
@@ -496,7 +496,7 @@
char buf[PERFCOUNT_MAX_LEN];
size_t dsize, padding;
long int data32, dbuf[2];
-   long long int data64;
+   SMB_BIG_INT data64;
uint32 counter_size;
 
obj-counters[obj-NumCounters].DefaultScale = 0;
@@ -535,7 +535,7 @@
memcpy(buf, data.dptr, data.dsize);
data32 = strtol(buf, NULL, 0);
if((obj-counters[obj-NumCounters].CounterType  0x0F00) 
== PERF_TYPE_NUMBER)
-   obj-counters[obj-NumCounters].DefaultScale = 
_reg_perfcount_compute_scale((long long int)data32);
+   obj-counters[obj-NumCounters].DefaultScale = 
_reg_perfcount_compute_scale((SMB_BIG_INT)data32);
else
obj-counters[obj-NumCounters].DefaultScale = 0;
dbuf[0] = data32;
@@ -546,7 +546,7 @@
dsize = sizeof(data64);
memset(buf, 0, PERFCOUNT_MAX_LEN);
memcpy(buf, data.dptr, data.dsize);
-   data64 = strtoll(buf, NULL, 0);
+   data64 = atof(buf);
if((obj-counters[obj-NumCounters].CounterType  0x0F00) 
== PERF_TYPE_NUMBER)
obj-counters[obj-NumCounters].DefaultScale = 
_reg_perfcount_compute_scale(data64);
else
@@ -834,7 +834,7 @@
 /*
 */
 
-static BOOL _reg_perfcount_get_64(unsigned long long *retval,
+static BOOL _reg_perfcount_get_64(SMB_BIG_UINT *retval,
  TDB_CONTEXT *tdb,
  int key_part1,
  const char *key_part2)
@@ -855,7 +855,7 @@
memcpy(buf, data.dptr, data.dsize);
free(data.dptr);
 
-   *retval = strtoll(buf, NULL, 0);
+   *retval = atof(buf);
 
return True;
 }
@@ -866,7 +866,7 @@
 static BOOL _reg_perfcount_init_data_block_perf(PERF_DATA_BLOCK *block,
TDB_CONTEXT *names)
 {
-   unsigned long long PerfFreq, PerfTime, PerfTime100nSec;
+   SMB_BIG_UINT PerfFreq, PerfTime, PerfTime100nSec;
TDB_CONTEXT *counters;
BOOL status = False;
const char *fname = counters_directory( DATA_DB );



svn commit: samba r11570 - in trunk/examples/perfcounter: .

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-08 02:15:24 + (Tue, 08 Nov 2005)
New Revision: 11570

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11570

Log:
adding GPL headers to files
Modified:
   trunk/examples/perfcounter/Makefile
   trunk/examples/perfcounter/perf.h
   trunk/examples/perfcounter/perf_writer.c
   trunk/examples/perfcounter/perf_writer_cpu.c
   trunk/examples/perfcounter/perf_writer_disk.c
   trunk/examples/perfcounter/perf_writer_mem.c
   trunk/examples/perfcounter/perf_writer_process.c
   trunk/examples/perfcounter/perf_writer_util.c
   trunk/examples/perfcounter/perfcountd.init


Changeset:
Sorry, the patch is too large (269 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11570


svn commit: samba r11571 - in trunk/source/utils: .

2005-11-07 Thread jerry
Author: jerry
Date: 2005-11-08 02:27:54 + (Tue, 08 Nov 2005)
New Revision: 11571

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11571

Log:
fix problem enumerating HKPD (doesn't help much in the long run)
Modified:
   trunk/source/utils/net_rpc_registry.c


Changeset:
Modified: trunk/source/utils/net_rpc_registry.c
===
--- trunk/source/utils/net_rpc_registry.c   2005-11-08 02:15:24 UTC (rev 
11570)
+++ trunk/source/utils/net_rpc_registry.c   2005-11-08 02:27:54 UTC (rev 
11571)
@@ -117,11 +117,14 @@
return werror_to_ntstatus(result);
}

-   result = rpccli_reg_open_entry(pipe_hnd, mem_ctx, pol_hive, subpath, 
MAXIMUM_ALLOWED_ACCESS, pol_key );
-   if ( !W_ERROR_IS_OK(result) ) {
-   d_printf(Unable to open [%s]\n, argv[0]);
-   return werror_to_ntstatus(result);
+   if ( strlen( subpath ) != 0 ) {
+   result = rpccli_reg_open_entry(pipe_hnd, mem_ctx, pol_hive, 
subpath, MAXIMUM_ALLOWED_ACCESS, pol_key );
+   if ( !W_ERROR_IS_OK(result) ) {
+   d_printf(Unable to open [%s]\n, argv[0]);
+   return werror_to_ntstatus(result);
+   }
}
+   memcpy( pol_key, pol_hive, sizeof(POLICY_HND) );

/* get the subkeys */

@@ -183,7 +186,8 @@
 out:
/* cleanup */

-   rpccli_reg_close(pipe_hnd, mem_ctx, pol_key );
+   if ( strlen( subpath ) != 0 )
+   rpccli_reg_close(pipe_hnd, mem_ctx, pol_key );
rpccli_reg_close(pipe_hnd, mem_ctx, pol_hive );
 
return werror_to_ntstatus(result);



svn commit: samba-web r848 - in trunk/news/calendar: .

2005-11-07 Thread deryck
Author: deryck
Date: 2005-11-08 03:57:19 + (Tue, 08 Nov 2005)
New Revision: 848

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=848

Log:
Adding an event for Simo to the Team calendar.

deryck

Added:
   trunk/news/calendar/simo_sfscon.txt
Modified:
   trunk/news/calendar/index.html
   trunk/news/calendar/showDate.js


Changeset:
Modified: trunk/news/calendar/index.html
===
--- trunk/news/calendar/index.html  2005-11-07 21:46:04 UTC (rev 847)
+++ trunk/news/calendar/index.html  2005-11-08 03:57:19 UTC (rev 848)
@@ -327,7 +327,7 @@
td9/td
td10/td
td11/td
-   td12/td
+   tda href=simo_sfscon.txt onclick=showDate(39); return 
false12/a/td
/tr
tr
td13/td

Modified: trunk/news/calendar/showDate.js
===
--- trunk/news/calendar/showDate.js 2005-11-07 21:46:04 UTC (rev 847)
+++ trunk/news/calendar/showDate.js 2005-11-08 03:57:19 UTC (rev 848)
@@ -28,6 +28,7 @@
 allEvents[36] = 'pJanuary 4-7 - Honolulu, HI./ppSamba-3 By Example:  
Building a Network Powerhouse./ppJohn H. Terpstra instructs our spotlight 
training workshop where delegates build a powerhouse network from the ground-up 
and uncover the secrets of properly maintaining it./p'
 allEvents[37] = 'pDecember 4-9, LISA \'05/ppThe 19th Large Installation 
System Addministration Conference will be in San Diego, CA December 4-9.  The 
conference offers a training program, tech sessions, workshops, BOFs, and 
more./ppJerry Carter will be giving tutorials on Kerberos, LDAP, Ethereal, 
and Samba.  Deryck Hodge will be giving a tutorial on using Google to build web 
applications.  See the a 
href=http://www.usenix.org/events/lisa05/;conference website/a for more 
info./p'
 allEvents[38] = 'pNovember 15, LinuxWorld Conference  Expo Frankfurt 
2005/ppVolker Lendecke will be giving a talk on the current status of 
Samba3 and Samba4 development at this LinuxWorld event.  The conference program 
is available at a 
href=http://www.linuxworldexpo.de/04_03_ix.php?ID=97;http://www.linuxworldexpo.de/04_03_ix.php?ID=97/a./p'
+allEvents[39] = 'pNovember 12, Southtyrol Free Software 
Conference/ppSamba Team member Simo Sorce will be giving a talk on Samba 4 
development and the future of Samba 3/4 at this Free Software Conference in 
Bressanone (or Brixen), Italy./p'
 
 
 function showDate(thisDate) {

Added: trunk/news/calendar/simo_sfscon.txt
===
--- trunk/news/calendar/simo_sfscon.txt 2005-11-07 21:46:04 UTC (rev 847)
+++ trunk/news/calendar/simo_sfscon.txt 2005-11-08 03:57:19 UTC (rev 848)
@@ -0,0 +1,6 @@
+November 12, Southtyrol Free Software Conference
+
+Samba Team member Simo Sorce will be giving a
+talk on Samba 4 development and the future of
+Samba 3/4 at this Free Software Conference in
+Bressanone (or Brixen), Italy.



  1   2   >