1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

862 Commits

Author SHA1 Message Date
Gerald Carter
d19dad8815 r15549: removing rhosts and 'hosts equiv' authentication features 2007-10-10 11:16:58 -05:00
Gerald Carter
4c4ea7b20f r15543: New implementation of 'net ads join' to be more like Windows XP.
The motivating factor is to not require more privileges for
the user account than Windows does when joining a domain.

The points of interest are

* net_ads_join() uses same rpc mechanisms as net_rpc_join()
* Enable CLDAP queries for filling in the majority of the
  ADS_STRUCT->config information
* Remove ldap_initialized() from sam/idmap_ad.c and
  libads/ldap.c
* Remove some unnecessary fields from ADS_STRUCT
* Manually set the dNSHostName and servicePrincipalName attribute
  using the machine account after the join

Thanks to Guenther and Simo for the review.

Still to do:

* Fix the userAccountControl for DES only systems
* Set the userPrincipalName in order to support things like
  'kinit -k' (although we might be able to just use the sAMAccountName
  instead)
* Re-add support for pre-creating the machine account in
  a specific OU
2007-10-10 11:16:57 -05:00
Stefan Metzmacher
a48b1f7fae r15531: fix linking of smbmnt and smbumount with socket wrapper
metze
2007-10-10 11:16:56 -05:00
Gerald Carter
cf71f88a3c r15462: replace the use of OpenLDAP's ldap_domain2hostlist() for
locating AD DC's with out own DNS SRV queries.
Testing on Linux and Solaris.
2007-10-10 11:16:49 -05:00
James Peach
0b5e07e12d r15424: Implement a "stacktrace" smbcontrol option using libunwind's remote
stack tracing support. This provides an easy way for users to provide
stack traces (hopefully it will be implemented on something other than
ia64).
2007-10-10 11:16:42 -05:00
Günther Deschner
6161e525de r15308: Fix the build, sorry.
Guenther
2007-10-10 11:16:34 -05:00
Günther Deschner
8b2ba11508 r15240: Correctly disallow unauthorized access when logging on with the
kerberized pam_winbind and workstation restrictions are in effect.

The krb5 AS-REQ needs to add the host netbios-name in the address-list.

We don't get the clear NT_STATUS_INVALID_WORKSTATION code back yet from
the edata of the KRB_ERROR but the login at least fails when the local
machine is not in the workstation list on the DC.

Guenther
2007-10-10 11:16:29 -05:00
Paul Green
a1c12d7949 r15218: Update Makefile.in to avoid building libmsrpc.so on systems that do not support shared libraries. 2007-10-10 11:16:29 -05:00
Volker Lendecke
d3d388180d r15098: Make smbclient -L use RPC to list shares, fall back to RAP. This should list
long share names.

Volker
2007-10-10 11:16:23 -05:00
Günther Deschner
e32c4f6f6e r15080: As discussed with Jerry, remove the CAP_LIBS again (we don't need that
handling anymore when we remove $(LIBS) from pam_winbind again.

Also make sure to build our own copy of iniparser with -fPIC.

Guenther
2007-10-10 11:16:21 -05:00
Gerald Carter
7d5adcf3a7 r15074: Remove -lcap from pam_winbind (not needed)
Temporary linking fix for --with-included-iniparser
(gd will do a proper fix later).
2007-10-10 11:16:21 -05:00
Günther Deschner
5ae22cf46b r15043: Only build our copy of iniparser when the system doesn't have one.
Guenther
2007-10-10 11:15:59 -05:00
Günther Deschner
0fed66926f r15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
servers. Also add a new "net rpc audit" tool. The lsa query infolevels
were taken from samb4 IDL, the lsa policy flags and categories are
partly documented on msdn. I need to cleanup the double
lsa_query_info_policy{2}{_new} calls next.

Guenther
2007-10-10 11:15:59 -05:00
Günther Deschner
41b79ee80c r15040: Stripping the parametric options in pam_winbind and use
/etc/security/pam_winbind.conf as config file for the PAM module by
default.

Guenther
2007-10-10 11:15:59 -05:00
Günther Deschner
6f668ce673 r15038: Replace all code in pam_winbind that relied on access to samba
internals, mostly with the code that was in pam_winbind before.

Also switch from using loadparm to use iniParser to read the new
pam_winbind options from a configuration file. That still uses the old
(parametric) option names which will be replaced next (as iniParser does
not support parametric options).

Guenther
2007-10-10 11:15:58 -05:00
Stefan Metzmacher
b562459fbf r14892: allow:
CC_CHECKER=mycheker make

metze
2007-10-10 11:15:53 -05:00
Stefan Metzmacher
aa76c2edee r14863: try to make the generation of bin/timelimit more portable
jerry: can you test that please

metze
2007-10-10 11:15:51 -05:00
Jeremy Allison
fd98427f64 r14746: Add the Samba4 replacements for opendir/readdir etc. to
Samba3 - with some 64-bit macro madness. Attempt to fix
the broken directory handling in the *BSD-of-the-month
club.
Jeremy.
2007-10-10 11:15:45 -05:00
Stefan Metzmacher
789694d12e r14676: add make valgrindtest and remove old 'make check' and old 'make test'
metze
2007-10-10 11:15:43 -05:00
James Peach
514a767c57 r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-based
HSM is interested in. Tested on both IRIX and SLES9.
2007-10-10 11:15:42 -05:00
Lars Müller
07a70f8f86 r14659: Fix installpammodules for shells where a
for module in ; do ... ; done

leads to an error (true64, solaris 8).

We now use {,UN}INSTALL_PAM_MODULES to get replaced by configure.
Therfore we don't run into the {,un}installpammodules rule if no PAM
module is requested.

Thanks to Björn Jacke for pointing to this issue.
2007-10-10 11:15:42 -05:00
Günther Deschner
38b18f428b r14643: Merge dcerpc_errstr from Samba 4.
Might need to rework prs_dcerpc_status().

Guenther
2007-10-10 11:15:41 -05:00
Stefan Metzmacher
899fd6808e r14632: add basic 'make test' using samba4's smbtorture
I'll try to add some tests using samba3's smbtorture and smbclient
later.

can someone check if this would be save to run on the build-farm
without leaking child processes...

metze
2007-10-10 11:15:40 -05:00
Lars Müller
7163c68605 r14631: Add {,un}installpammodules rule and add it to the install rule.
Nothing happens if PAM_MODULES is empty which is our default.

The default destination dir is "${LIBDIR}/security".  It's possible to
overwrite the default with --with-pammodulesdir while calling configure.
2007-10-10 11:15:40 -05:00
Lars Müller
160626195b r14627: Adapt the linkage text from pam_smbpass to pam_winbind. 2007-10-10 11:15:40 -05:00
Stefan Metzmacher
d9df1853b9 r14624: - add timelimit.c
- add configure tests --with-selftest-prefix=/tmp/samba-test
  this is needed because the path name of unix socket can only be 108 chars long
- add configure test --with-smbtorture4-path=/home/foo/prefix/samba4/bin/smbtorture
  this will be used to run samba4's smbtorture inside samba3's make test later

metze
2007-10-10 11:15:39 -05:00
Gerald Carter
7d92cff7a3 r14515: fix soname breakage caused by mad merge from trunk (missed replacing a AC variable) 2007-10-10 11:15:36 -05:00
Lars Müller
90eb092083 r14331: Add a comment on top of test_pam_modules about what we're testing. 2007-10-10 11:15:25 -05:00
Lars Müller
4b545e0ce6 r14326: First catch of make test_pam_modules.
Testing pam_smbpass pam_winbind
dlopen() of "./bin/pam_smbpass.so" succeeded.
dlopen() of "./bin/pam_winbind.so" failed: ././bin/pam_winbind.so:
undefined symbol: secrets_fetch_domain_sid
make: *** [test_pam_modules] Error 1
2007-10-10 11:15:25 -05:00
Lars Müller
71b2eb55ad r14325: Add pam_modules rule which builds the configure(d) pam modules. This is
called as part of the all rule (again only if pam modules are requested
by configure).

Add pam_winbind rule.

Ensure proto_exists before we build the pam modules.

Add test_pam_modules rule to test if the built pam modules have any
unresolved symbols.  For test_pam_modules we use script/tests/dlopen.sh
which was written by Nalin Dahyabhai <nalin@redhat.com>.  Thanks Nalin!
RedHat and SuSE use this script to test nss and pam modules since
several years.
2007-10-10 11:15:25 -05:00
Günther Deschner
a32a423a0e r14321: When we have libnscd and winbindd comes (back) online, try to flush the
nscd caches so that NSS-calls can deliver accurate information.

Guenther
2007-10-10 11:15:24 -05:00
Lars Müller
9883957b74 r14317: Use source/bin as dir to link pam_winbind instead of source/nsswitch/
The intention is to have the resulting binaries at one place.  This is
also usefull for upcoming changes to provide a test_pammodules rule.

With these changes I even got aware of
testsuite/nsswitch/pam_winbind_syms.exp  But this only covers
pam_winbind.
2007-10-10 11:15:24 -05:00
Gerald Carter
a40a7f5ea1 r14077: fix build breakage 2007-10-10 11:11:10 -05:00
Gerald Carter
71d960250d r14075: * add support for long variable names in smb.conf in the form of %(....)
* add support for %(DomainSID)
* replace standard_sub_XXX() functions with wrappers around their
  alloc_sub_XXX() counterparts
* add support for using SIDs in read list, et. al. (anything that
  is checked by nt_token_contains_name_in_list())
2007-10-10 11:11:09 -05:00
Lars Müller
b974b1879c r14057: Remove generated script/gen-8bit-gap.sh while calling rule realclean.
Ignore script/gen-8bit-gap.sh in branches/SAMBA_3_0/source/script as we
already do in trunk.
2007-10-10 11:11:09 -05:00
Lars Müller
7773b8c9e0 r14056: Also install the mount.smbfs sym link to rootsbindir. Therfore we have
to substitute rootsbindir in {,un}installbin.sh.in.

Pass $prefix as third arg to installbin/ uninstallbin as rootsbindir by
default is $prefix/sbin.
2007-10-10 11:11:09 -05:00
Lars Müller
730d5ec229 r14052: Remove BASEDIR use in the Makefile. BASEDIR=prefix=@prefix@ till now.
I suggest to stay with ^BASEDIR= @prefix@$ for at least the next release
to give external projects - like samba-vscan project - time to adopt
this change.

BASEDIR is non of the default autoconf variables.  prefix is.

Jerry1: If possible please announce this with the next release.  I'll
self reply to technical.

Jerry2: This does not break your makepkg stuff as you set BASEDIR
_not_ from the Makefile.
2007-10-10 11:11:08 -05:00
Lars Müller
fb76390c6a r13947: Use tabs instead of spaces for indention. 2007-10-10 11:11:00 -05:00
Lars Müller
426c8fe0bd r13946: Link pam_smbpass with the required object files. Fix bug #3565. 2007-10-10 11:11:00 -05:00
Günther Deschner
7e80d5358e r13945: Move display_sec.c to lib/ (as suggested by Volker).
Guenther
2007-10-10 11:11:00 -05:00
Günther Deschner
0ae3fddf95 r13864: Some cleanup and the samr set security object function client-side.
Guenther
2007-10-10 11:10:57 -05:00
Lars Müller
8f48c6d1e5 r13819: Remove accidently with rev 13713 submitted and never used MY_FLAGS
variable.
2007-10-10 11:10:55 -05:00
Lars Müller
deb35f85b3 r13751: Call proto_exists before we create the precompiles headers. 2007-10-10 11:10:52 -05:00
Lars Müller
6e4af8cd15 r13750: Cleanup line wrap to less than 80 chars. 2007-10-10 11:10:52 -05:00
Lars Müller
a2ab4cc824 r13713: Added installcifsmount and uninstallcifsmount rules for mount.cifs and
unmount.cifs.  This is controlled via CIFSMOUNT_PROGS which is set by
configure by default to yes on linux systems only.  It's possible to
disable with --without-cifsmount anyhow.

Added ROOTSBINDIR to the Makefile to allow us an install to /sbin and
not $prefix/sbin.  Configurable with --with-rootsbindir.
2007-10-10 11:10:49 -05:00
Lars Müller
5119472cdc r13688: Revert change to set DAT_FILES and SWAT_MSG_FILES in the Makefile.
Instead check for *.dat and *.msg files as done before.  Then added
files are installed and removed as soon as we have some in the
filesystem.  It's simpler and less error prone.
2007-10-10 11:10:23 -05:00
Lars Müller
43549301b9 r13663: make uninstall DESTDIR=/somewhere no longer leaves files. This is done
with the new rules: uninstallservers uninstalldat, uninstallswat (calles
uninstallmsg), uninstallmodules, uninstallclientlib, and
uninstalllibmsrpc.

We still leave directories.  We might try to remove the dirs we created
in reverse order.

The new uninstall scripts are sym links to the respective install
scripts.  Inside we set mode to install or uninstall.

installservers is now used to install the servers.  These are no longer
installed with installbin.
2007-10-10 11:10:21 -05:00
Lars Müller
a606d11056 r13656: Use the new installdirs.sh syntax for all calls. 2007-10-10 11:10:21 -05:00
Lars Müller
c38adf7131 r13642: Fix install* scripts to use DESTDIR.
Always pass the INSTALLPERMS and DESTDIR as first and second arg to the
scripts.

No longer prepend DESTDIR to the remaining args.

To fix bug #3282 it is important _not_ to prepend DESTDIR to the source
of the sym link pointing to smbmount.
2007-10-10 11:10:20 -05:00
Gerald Carter
028b1f26ae r13573: removing wrepld from SAMBA_3_0. The Samba 4 work is more current and any integration into Samba 3 would most likely be from scratch 2007-10-10 11:10:15 -05:00