1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

158 Commits

Author SHA1 Message Date
Andrew Bartlett
d0bebea521 Patch from ab, to make findsmb omit -r most of the time.
(original mail follows)
--
From:	Alexander Bokovoy <a.bokovoy@sam-solutions.net>
Greetings!

I propose to make an optional argument '-r' for findsmb utility to pass
'-r' option to nmblookup optionally and default to omit it. The reason is
to have findsmb working more user-friendly in contemporary office
environments where Windows 95/98 boxes are rare and also to allow usage of
the utility under non-priviledged accounts when Windows95/98 boxes are in
minority or even absent in network neighbourhood.

An attached patch provides this change for HEAD together with
documentation changes.

--
/ Alexander Bokovoy
0001-01-01 00:00:00 +00:00
Herb Lewis
cfe2d01b7d add and escape before $( in regex string so it is not interpreted as the
perl variable for "real gid of this process"
0001-01-01 00:00:00 +00:00
Simo Sorce
4029dae906 forgont genstruct.pl is needed to build new include files for genparse
sorry
0001-01-01 00:00:00 +00:00
Herb Lewis
52fdb787d4 fix broken incremental tar - merge from 2.2
found by "Jacob Anawalt" <anawaltaj@hotmail.com>
0001-01-01 00:00:00 +00:00
Simo Sorce
6dfa460986 make vfs recycle use vfs facilities correctly!
WARNING: every vfs module maintainer should look at these changes to understand how to properly write a vfs module in head!!

also make installmodules work correctly when the directory structure is not yet in place.

Simo.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
d777bba508 Remove obsolete scripts and put in module install/uninstall 0001-01-01 00:00:00 +00:00
Jeremy Allison
82b8f749a3 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
65c4a1060b Be less verbose 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
bf5a84efb3 Update find_missing_doc.pl:
- Report references in smb.conf that point to non-existent entries
 - Report entries that are not referenced in the list
 - Report entries that are documented, but don't exist in loadparm.c
 - Report entries that are in loadparm.c, but are not documented
0001-01-01 00:00:00 +00:00
Volker Lendecke
3f78923a6f An example of a group creation command that can handle failures
of groupadd.

Volker
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
f9018f4560 Don't report missing "-valid" 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
77152b4033 Add script to find undocumented smb.conf options 0001-01-01 00:00:00 +00:00
Gerald Carter
8812223e2a simple perl script for retreiving cvs log messages for a file
after a given date.  I use it to help update the WHATSNEW.txt for a
release.

	./cvslog.pl SAMBA_2_2 '>2002-06-18' configure.in

The output is a little messy right now, but I plan to clean that up.
0001-01-01 00:00:00 +00:00
Tim Potter
9ffca4824c Merge from APPLIANCE_HEAD:
>When creating an automatically generated prototype make sure the
>destination directory exists.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
935996e1c7 fixed man install
samba-patches 961
0001-01-01 00:00:00 +00:00
Gerald Carter
2a30c243ec done! printer_info_2, devicemode, sec_desc, & printer data all enumerate
and display correctly in regedit.exe.

Not sure about REG_SZ values in PrinterDriverData.  If we store these
in UNICODE, I'll have to fix up a few things.

REG_BINARY & REG_DWORD are fine.
0001-01-01 00:00:00 +00:00
Gerald Carter
e62ae94823 another intermediate checkin on the way to enumerating forms
via the registry.  There is a seg fault here which shouldn't
bother anyone until I can get it fixed.  I just need
a check point in case I need to roll back to this version later on.
0001-01-01 00:00:00 +00:00
Gerald Carter
a43d9788fa virtual registry framework with initial printing hooks. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
91ad9041e9 used findstatic.pl to make some variables static and remove some dead
code
0001-01-01 00:00:00 +00:00
Andrew Tridgell
2947b7624f much better findstatic script 0001-01-01 00:00:00 +00:00
Andrew Tridgell
7c035d473c a useful script for finding global variables or functions that could
be static

very very slow ... I leave it as an exercise for the reader to make
this O(n) instead of O(n^2)
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c28668068b A few things in this commit:
cleanup some of the code in net_rpc_join re const warnings and
fstrings.

Passdb:

Make the %u and %U substituions in passdb work.
This is done by declaring these paramters to be 'const' and doing
the substitution manually.  I'm told this is us going full circle,
but I can't really see a better way.

Finally these things actually seem to work properly...

Make the lanman code use the pdb's recorded values for homedir etc
rather than the values from lp_*()

Add code to set the plaintext password in the passdb, where it can
decide how to store/set it.  For use with a future 'ldap password
change' option, or somthing like that...

Add pdb_unix, so as to remove the 'not in passdb' special cases from the
local_lookup_*() code.  Quite small, as it uses the new 'struct passwd ->
SAM_ACCOUNT' code that is now in just one place.  (also used by pdb_smbpasswd)

Other:
Fix up the adding of [homes] at session setup time to actually pass
the right string, that is the unix homedir, not the UNC path.

Fix up [homes] so that for winbind users is picks the correct name.
(bad interactions with the default domain code previously)

Change the rpc_server/srv_lsa_nt.c code to match NT when for the
SATUS_NONE_MAPPED reply:  This was only being triggered on
no queries, now it is on the 'no mappings' (ie all mappings failed).
Checked against Win2k.

Policy Question:  Should SID -> unix_user.234/unix_group.364 be
considered a mapping or not?  Currently it isn't.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
5b682b2e04 Added findsmb to .cvsignore list. 0001-01-01 00:00:00 +00:00
Gerald Carter
7382c3013d merge from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Gerald Carter
cc241cb240 merge from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Tim Potter
9b2777d3bc Added another return type. 0001-01-01 00:00:00 +00:00
Tim Potter
5bf5bffdd5 Use headername when closing off include file guards. 0001-01-01 00:00:00 +00:00
Herb Lewis
4af0c7a93f make install should also install the default dat files from codepages
directory so we don't keep getting these stupid error messages about
incorrect size for valid.dat upcase.dat and lowcase.dat
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c7a883df28 Move the directory creation process outside the 'installbin.sh' script, and
into its own.  The 'installdirs' makefile entry didn't do anything on my laptop,
so it has been replaced with the section from installbin.sh.

This also fixes the bug that we ignored the setting of $(PRIVATEDIR) when
making the directories.

Finally, link pam_winbind with .po objects only, not a mix of .o and .po
(as per Don Mccall's request).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
6d33b30929 we definately don't want RCS $id tags in Samba. They make merging much
harder.
0001-01-01 00:00:00 +00:00
Jim McDonough
d082d3a9fc Add ADS_MODLIST to allowed types 0001-01-01 00:00:00 +00:00
Andrew Tridgell
e72c6fb36e support double functions 0001-01-01 00:00:00 +00:00
Andrew Bartlett
8ef13cabdd This is the current patch from Luke Leighton <lckl@samba-tng.org> to add a
degree of seperation betwen reading/writing the raw NamedPipe SMB packets
and the matching operations inside smbd's RPC components.

This patch is designed for no change in behaviour, and my tests hold that to be
true.  This patch does however allow for the future loadable modules interface
to specify function pointers in replacement of the fixed state.

The pipes_struct has been split into two peices, with smb_np_struct taking the
information that should be generic to where the data ends up.

Some other minor changes are made: we get another small helper function in
util_sock.c and some of the original code has better failure debugs and
variable use. (As per on-list comments).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
05a90a2884 much better ADS error handling system 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ee1c3e1f04 - added initial support for trusted domains in winbindd_ads
- gss error code patch from a.bokovoy@sam-solutions.net
- better sid dumping in ads_dump
- fixed help in wbinfo
0001-01-01 00:00:00 +00:00
Andrew Tridgell
058a5aee90 added "net join" command
this completes the first stage of the smbd ADS support
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f283011c28 always install swat language files 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d330575856 initial kerberos/ADS/SPNEGO support in libsmb and smbclient. To
activate you need to:

- install krb5 libraries
- run configure
- build smbclient
- run kinit to get a TGT
- run smbclient with the -k option to choose kerberos auth
0001-01-01 00:00:00 +00:00
Tim Potter
880201b52b Add CLI_POLICY_HND as a valid return type. 0001-01-01 00:00:00 +00:00
Motonobu Takahashi
9ec2d5e96e now --with-i18n-swat works to install some international files
used by SWAT into $swatdir/$ln/{help,images,include}

we have still points which needs to discuss, that is how to archive
and install lots of HTML help files and Using Samba files.

-- monyo
0001-01-01 00:00:00 +00:00
Andrew Bartlett
a302bb20e2 Try to fix up manpage installation 0001-01-01 00:00:00 +00:00
Motonobu Takahashi
c2e256c18c fixed a typo in installman.sh
fixed a problem that source/install-sh is not executable
0001-01-01 00:00:00 +00:00
Motonobu Takahashi
486b79a6fc Added SWAT i18n feature:
TO enable configure with --with-i18n-swat
  to support this gettext is integrated
  and a new directories name "po" and "intl" are created.

  now these languages are supported:

  en - English (default)
  ja - Japanese
  po - Polish
  tr - Turkish

  To add your language,
  to create ${your_language}.po by translating source/po/en.po
  into your language is needed.

  some of html and image files of various language version are not
  included yet, though message catalogue files are installed.
  you need to copy files manually under
  ${swatdir}/lang/$ln/{help,images,included,using_samba}


And also added a option to intall manual pages:
of various lang version
  To enable configure with --with-manlangs
  but manual pages themself are not included yet.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
f57b1085b3 Try to fix up the shell syntax 0001-01-01 00:00:00 +00:00
Andrew Bartlett
7a47e0fceb typo 0001-01-01 00:00:00 +00:00
Andrew Bartlett
4e5c7724b4 Adding the appropirate files might help...
(These are part of the build_options patch).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1af8bf34f1 replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor
limit that we hit with nasty consequences on some systems

I would eventually prefer us to have a configure test to see if we need
to replace stdio, but for now this code needs to be tested widely so
I'm enabling it by default.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
24f9ab683d the next step in our error code handling change
- added WERROR for win32 error codes
- added a configure test for immediate structures

still lots to do, so its not enabled by default, but the main
structure is there
0001-01-01 00:00:00 +00:00
Herb Lewis
8021669b16 new logs use abbreviated month names. Add this to date conversion 0001-01-01 00:00:00 +00:00
Andrew Tridgell
83d9896c1e converted smbd to use NTSTATUS by default
major changes include:

- added NSTATUS type
- added automatic mapping between dos and nt error codes
- changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT()
  these calls auto-translate to the client error code system
- got rid of the cached error code and the writebmpx code

We eventually will need to also:
- get rid of BOOL, so we don't lose error info
- replace all ERROR_DOS() calls with ERROR_NT() calls

but that is too much for one night
0001-01-01 00:00:00 +00:00