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

26116 Commits

Author SHA1 Message Date
Karolin Seeger
765e5d2282 printing: Add new parameter "cups timeout".
The default timeout for connections to CUPS servers is set
to 5 minutes in the CUPS libraries. The smbd hangs on startup
until the timeout is reached if the CUPS server is unreachable.
This parameter makes the timeout configurable. The default value
is set to 30 seconds.

Karolin
2008-09-23 16:57:58 -07:00
Günther Deschner
61a45c85de s3: fix make everything.
Guenther
2008-09-24 01:40:52 +02:00
Jeremy Allison
3807b30f44 Fix winbindd crash in an unusual failure mode. Bug #5737. Based on original patch from shargagan@novell.com
Jeremy.
2008-09-23 16:39:57 -07:00
Jeremy Allison
d275cc762d Fix bug #5783 FindFirst fails where search pattern == mangled filename.
That was an old and subtle bug.
Jeremy.
2008-09-23 15:05:45 -07:00
Günther Deschner
0bbbe2c21f pam_winbind: attempt to fix build issue on solaris, bug #5784
Guenther
2008-09-23 23:42:08 +02:00
Günther Deschner
022947097f s3-ndr: add stub smb_iconv_convenience to some ndr_ functions.
Guenther
2008-09-23 23:35:14 +02:00
Günther Deschner
5fa451ea84 s3: re-run make samba3-idl.
Guenther
2008-09-23 23:35:04 +02:00
Günther Deschner
de54bac54c s3: fix NETLOGON_NT_VERSION version flags.
Guenther
2008-09-23 23:20:10 +02:00
Günther Deschner
0950cce83d s3: re-run make samba3-idl.
Guenther
2008-09-23 23:20:01 +02:00
Günther Deschner
d62bc0e845 s3-nbt: start merging from samba4 idl.
Guenther
2008-09-23 23:19:54 +02:00
Günther Deschner
8bd302ab22 s3-build: let ctags/etags start from the toplevel dir.
Guenther
2008-09-23 23:16:35 +02:00
Günther Deschner
05e0966d85 s3-nbt: remove old samba3 libcli/nbt copy.
Guenther
2008-09-23 10:48:58 +02:00
Michael Adam
4432967532 [s3]winbindd_group: don't list the domain twice when expanding internal aliases
Before this, "getent group builtin\\administrators" expanded
domain group members in the form DOMAIN\domain\user.

Michael
2008-09-23 10:00:26 +02:00
Michael Adam
4205fab500 [s3]winbindd_group: sanely handle NULL domain in add_member().
Michael
2008-09-23 10:00:26 +02:00
Michael Adam
49145bfefa [s3]winbindd_ads: honour "winbind use default domain" in lookup_groupmem().
This fixes the output of "getent group" when "winbind use default domain = yes"
with security = ads.

Michael
2008-09-23 10:00:26 +02:00
Michael Adam
1f8a7739ac [s3]winbindd_rpc: add domain prefix to username in lookup_groupmem().
This makes the output of "getent group" of a domain group show the
domain prefix with "security = domain".

Michael
2008-09-23 10:00:26 +02:00
Michael Adam
1b9c2ccb1f [s3]winbindd_util: add fill_domain_username_talloc().
A talloc version of fill_domain_username().

Michael
2008-09-23 10:00:26 +02:00
Michael Adam
e401ce6de7 [s3]winbindd_util: add prototype for fill_domain_username_talloc().
A talloc version of fill_domain_username().

Michael
2008-09-23 10:00:25 +02:00
Michael Adam
f0dccdca6a [s3]winbindd: fix a comment typo
Michael
2008-09-23 10:00:25 +02:00
Michael Adam
6c8c5d7113 [s3]winbind_util: fix an implicit cast compile warning.
Michael
2008-09-23 10:00:25 +02:00
Günther Deschner
fd3ba988dc s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.
Guenther
2008-09-23 09:49:56 +02:00
Günther Deschner
7f5aef542a s3-nbt: use ../libcli/nbt helper.
Guenther
2008-09-23 09:37:24 +02:00
Günther Deschner
9f8813e4d4 s3: re-run make idl.
Guenther
2008-09-23 09:37:24 +02:00
Günther Deschner
83c042583b s3-nbt: refer to ../libcli/nbt in nbt.idl.
Guenther
2008-09-23 09:37:24 +02:00
Günther Deschner
c48186f507 s3: use samba4 prototype for ndr_push/pull_struct_blob.
Guenther
2008-09-23 09:37:23 +02:00
Günther Deschner
c8858058e9 s3: re-run make idl.
Guenther
2008-09-23 09:37:23 +02:00
Günther Deschner
9421ecac33 s3-nbt: fix nbt.idl in order to use shared nbt helper.
Guenther
2008-09-23 09:37:23 +02:00
Günther Deschner
f093ddbc11 s3-charset: add smb_iconv_convenience.
Guenther
2008-09-23 09:37:23 +02:00
Volker Lendecke
6660ac5d0a Fix make pch in the merged build 2008-09-23 01:44:41 +02:00
Gerald (Jerry) Carter
7d5fb989ac idmap_adex: Add new idmap plugin for support RFC2307 enabled AD forests.
The adex idmap/nss_info plugin is an adapation of the Likewise
Enterprise plugin with support for OU based cells removed
(since the Windows pieces to manage the cells are not available).

This plugin supports

  * The RFC2307 schema for users and groups.
  * Connections to trusted domains
  * Global catalog searches
  * Cross forest trusts
  * User and group aliases

Prerequiste: Add the following attributes to the Partial Attribute
Set in global catalog:

  * uidNumber
  * uid
  * gidNumber

A basic config using the current trunk code would look like

 [global]
      idmap backend = adex
      idmap uid = 10000 - 19999
      idmap gid = 20000 - 29999
      idmap config US:backend = adex
      idmap config US:range = 20000 - 29999
      winbind nss info = adex

       winbind normalize names = yes
       winbind refresh tickets = yes
       template homedir = /home/%D/%U
       template shell = /bin/bash
2008-09-22 15:46:19 -07:00
Günther Deschner
92ebd6afc9 re-run make idl.
Guenther
2008-09-22 19:36:53 +02:00
Günther Deschner
bd7d2fa017 netapi: add more fields to USER_INFO_X.
Guenther
2008-09-22 19:36:53 +02:00
Günther Deschner
b47953ea10 netapi: add NetFile testsuite.
Guenther
2008-09-22 19:36:53 +02:00
Günther Deschner
ba58d17e69 netapi: fix case statement in example NetUserSetModals code.
Guenther
2008-09-22 19:31:44 +02:00
Stefan Metzmacher
b7e2c74cef s3: link @tallocdir@/testsuite_main.o into talloctort
metze
2008-09-22 00:21:26 +02:00
Stefan Metzmacher
2c7cbb6b1d s3: link libreplace/test/main.c into replacetort
metze
2008-09-22 00:09:13 +02:00
Jelmer Vernooij
bc794246df Fix merged build. 2008-09-21 23:57:59 +02:00
Volker Lendecke
73aebd7d07 Attempt to fix bug 5778
Jeff, Steve, please check!
2008-09-21 22:56:50 +02:00
Günther Deschner
e194ded26e netlogon: move password change code out to rpccli_netlogon_set_trust_password.
Guenther
2008-09-21 22:30:39 +02:00
Günther Deschner
6f9a83505f netlogon: refactor just_change_the_password a bit.
Guenther
2008-09-21 22:30:29 +02:00
Günther Deschner
ca56c02d4b netlogon: use init_netr_CryptPassword in "just_change_the_password"
Guenther
2008-09-21 22:30:21 +02:00
Günther Deschner
1f9624175a netlogon: add init_netr_CryptPassword.
Guenther
2008-09-21 22:30:10 +02:00
Günther Deschner
2331c96d28 build: rebuild only changed IDL files.
Let"s see how this works now.

Guenther
2008-09-21 22:29:34 +02:00
Volker Lendecke
7e5f345cfe Fix the build -- appweb is no more 2008-09-21 18:09:55 +02:00
Volker Lendecke
2009229c84 Make use of TALLOC_ZERO_P 2008-09-21 16:32:40 +02:00
Simo Sorce
258cec7756 Add comment to explain version bump 2008-09-19 13:51:40 -04:00
Gerald (Jerry) Carter
7d391c09ee idmap: Increment the interface number after Volker's rewrite. 2008-09-19 11:43:45 -05:00
Jelmer Vernooij
fcf6740d3f Fix location of nss_wrapper.pl script. 2008-09-18 15:16:48 +02:00
Jeremy Allison
0379d9c151 Correctly get+set the NT ACL on a file. Now to make us check it on open..
Jeremy.
2008-09-17 13:44:29 -07:00
Jeremy Allison
21ca0c31b9 Mark module experimental, fix crash bugs.
Jeremy.
2008-09-17 12:34:09 -07:00
Jeremy Allison
507050ab55 Ensure vfs_acl_xattr is built.
Jeremy.
2008-09-17 12:21:19 -07:00
Jeremy Allison
dc3a0acdaa Ensure all pointers are initialized. Without this we can crash when looking up a non-existant uid.
Jeremy.
2008-09-17 12:02:13 -07:00
Jelmer Vernooij
87e4e0e940 Merge branch 'master' of ssh://git.samba.org/data/git/samba into singlerpc
Conflicts:
	source3/Makefile.in
2008-09-17 19:00:46 +02:00
Jelmer Vernooij
661d25402e Fix pidl/config.m4 location. 2008-09-17 18:57:40 +02:00
Michael Adam
f4293618a7 [s3]build: add dependency to libsmbclient to libsmbclient_examples target
Michael
2008-09-17 18:55:33 +02:00
Michael Adam
0ff2b4c7eb [s3]build: fix building bin/replacetort (lib/replace has moved)
Michael
2008-09-17 18:53:46 +02:00
Michael Adam
96b1bf0dd4 Makefile: add targets [clean_]libnetapi_examples to top lvl Makefile
Michael
2008-09-17 18:49:15 +02:00
Michael Adam
90830f6400 build: fix autogen.sh - pidl has moved to ../pidl
Michael
2008-09-17 18:40:08 +02:00
Günther Deschner
c91a907688 build: fix cflag recursion in generated netapi makefiles.
Guenther
2008-09-17 18:05:54 +02:00
Volker Lendecke
eeac8d4fbe Remove a cast -- thanks metze 2008-09-17 17:45:17 +02:00
Jelmer Vernooij
79190992b3 Move pidl to top-level directory. 2008-09-17 17:12:27 +02:00
Jelmer Vernooij
26c4f91403 Merge branch 'master' of ssh://git.samba.org/data/git/samba into singlerpc 2008-09-17 15:45:01 +02:00
Jelmer Vernooij
f5b134fb46 Sync more interface descriptions between Samba 3 and Samba 4. 2008-09-17 15:43:04 +02:00
Jelmer Vernooij
5975cbc260 Sync addition of [todo] attribute to Samba 3. 2008-09-17 15:07:24 +02:00
Günther Deschner
93384b627c pam_winbind: fix the build wrt libreplace.
Guenther
2008-09-17 15:00:50 +02:00
Jelmer Vernooij
06999ae473 Merge branch 'master' of ssh://git.samba.org/data/git/samba into singlelib 2008-09-17 14:34:54 +02:00
Jelmer Vernooij
7106cd9fd5 Fix merged build. 2008-09-17 14:25:25 +02:00
Jelmer Vernooij
d6983b2e45 Add simple README file. 2008-09-17 14:20:56 +02:00
Jelmer Vernooij
94855cd692 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00
Jeremy Allison
a69a2ae5df Make the correct module name.
Jeremy.
2008-09-16 17:01:00 -07:00
Jeremy Allison
5cc096a109 First (incomplete) cut of this module. Based on Volker's original work.
Jeremy.
2008-09-16 15:55:06 -07:00
Gerald (Jerry) Carter
28d2683903 * Allow an admin to define the "uid" attribute for a RFC2307
user object in AD to be the username alias.

For example:

  $ net ads search "(uid=coffeedude)"
  distinguishedName: CN=Gerald W. Carter,CN=Users,DC=pink,DC=plainjoe,DC=org
  sAMAccountName: gcarter
  memberOf: CN=UnixUsers,CN=Users,DC=pink,DC=plainjoe,DC=org
  memberOf: CN=Domain Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
  memberOf: CN=Enterprise Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
  memberOf: CN=Schema Admins,CN=Users,DC=pink,DC=plainjoe,DC=org
  uid: coffeedude
  uidNumber: 10000
  gidNumber: 10000
  unixHomeDirectory: /home/gcarter
  loginShell: /bin/bash

  $ ssh coffeedude@192.168.56.91
  Password:

  coffeedude@orville:~$ id
  uid=10000(coffeedude) gid=10000(PINK\unixusers) groups=10000(PINK\unixusers)

  $ getent passwd PINK\\gcarter
  coffeedude:*:10000:10000::/home/gcarter:/bin/bash

  $ getent passwd coffeedude
  coffeedude:*:10000:10000::/home/gcarter:/bin/bash

  $ getent group PINK\\Unixusers
  PINK\unixusers10000:coffeedude
2008-09-16 10:35:21 -07:00
Gerald (Jerry) Carter
63554b4078 idmap_hash: Add the idmap/nss-info provider from Likewise Open.
* Port the Likewise Open idmap/nss_info provider (renamed to
  idmap_hash).

* uids & gids are generated based on a hashing algorithm that collapse
  the Domain SID to a 31 bit number.  The reverse mapping from the
  high order 11 bits to the originat8ing sdomain SID is stored in
  a has table initialized at start up.

* Includes support for "idmap_hash:name_map = <filename>" for the
  name aliasing layer.  The name map file consist of entries in
  the form "alias = DOMAIN\name"
2008-09-16 10:28:11 -07:00
Gerald (Jerry) Carter
544cd1b4b9 winbindd: Update the calls to ws_name_XX() to reflect API changes.
* Ensures that all points an which a name is received or returned
  to/from a client passes through the name aliases layer (users
  and groups).
2008-09-16 10:27:59 -07:00
Gerald (Jerry) Carter
d6de32db2f winbindd: Add support for name aliasing.
* Add support user and group name aliasing by expanding
  the ws_name_replace() and ws_name_return() functions.
  The lookup path is
     aliases -> qualified name -> SID
     SID -> fully qualified name -> alias
  In other words, the name aliasing support is a thin layer
  built on top of SID/NAME translation.

* Rename the ws_name_XX() functions to normalize_name_map()
  and normalize_name_unmap().  Chaneg interface to return
  NTSTATUS rather than char *.

* Add associated cache validation functions.
2008-09-16 10:27:49 -07:00
Jelmer Vernooij
323346f7b0 Merge branch 'singlecompression' into single 2008-09-16 19:07:59 +02:00
Jelmer Vernooij
9c466a6158 Use single copy of compression library in Samba3,4. 2008-09-16 19:07:02 +02:00
Jelmer Vernooij
f2723d193d Regenerate C files now that pidl reads imported files - saves a few
lines of code for types that don't have deferred data.
2008-09-16 18:49:22 +02:00
Jelmer Vernooij
4beb6731a7 Use pidl from Samba 4 from Samba 3 rather than hoping there is one installed on the
system.
2008-09-16 18:48:56 +02:00
Jelmer Vernooij
cda87628bc Fix merged build. 2008-09-16 17:22:03 +02:00
Jelmer Vernooij
9ef623beda Merge branch 'singlepopt' into single
Conflicts:
	source4/Makefile
2008-09-16 17:20:54 +02:00
Jelmer Vernooij
c8bff39df6 Use a single copy of popt in samba3 and samba4. 2008-09-16 17:20:16 +02:00
Jelmer Vernooij
a347ab83f4 Merge branch 'singlensswrap' into single
Conflicts:
	source3/configure.in
	source4/Makefile
	source4/configure.ac
	source4/lib/nss_wrapper/nss_wrapper.c
	source4/lib/replace/system/passwd.h
	source4/main.mk
2008-09-16 17:07:11 +02:00
Jelmer Vernooij
ca2da61540 Use single cope of nss_wrapper in Samba 3 and Samba 4. 2008-09-16 17:05:00 +02:00
Jelmer Vernooij
7fdca97040 Merge branch 'singlesw' into single
Conflicts:
	source3/lib/socket_wrapper/socket_wrapper.c
	source4/lib/replace/system/network.h
2008-09-16 16:46:22 +02:00
Jelmer Vernooij
bf21371c09 Merge branch 'singlereplace' into single
Conflicts:
	source4/configure.ac
	source4/torture/local/config.mk
2008-09-16 16:45:10 +02:00
Jelmer Vernooij
f957aeaee6 Merge branch 'singletdb' into single 2008-09-16 16:44:16 +02:00
Jelmer Vernooij
41669237cd Use single copy of socket_wrapper in Samba 3 and Samba 4. 2008-09-16 16:39:45 +02:00
Jelmer Vernooij
0888ffa2b7 Make Samba 3 and Samba 4 both use the same single copy of libreplace. 2008-09-16 16:30:14 +02:00
Jelmer Vernooij
7111645d3c Use single copy of tdb in both samba3 and samba4. 2008-09-16 15:16:31 +02:00
Jelmer Vernooij
80a5da73e9 Share talloc source code between Samba 3 and Samba 4. 2008-09-16 14:36:41 +02:00
Timur
4dfa72423e Fix aio on FreeBSD. 2008-09-15 18:45:10 -07:00
Timur
a664cf7658 Fix display of POSIX ACLs. 2008-09-15 18:25:15 -07:00
Timur
a59618e88b Fix cut and paste error in quota code. 2008-09-15 18:21:02 -07:00
Steven Danneman
61cb830f66 Fixed "uninitilized variable" build warning
Simple fix for warning:

Compiling utils/sharesec.c
utils/sharesec.c: In function `change_share_sec':
utils/sharesec.c:404: warning: 'sd' might be used uninitialized in this function
2008-09-15 17:53:37 -07:00
Steven Danneman
38fff9f922 Fixed "uninitialized variable" build warning
With gcc 4.1.3 on Ubuntu 7.10 the following build warning occurs:

Compiling libnet/libnet_samsync_keytab.c
cc1: warnings being treated as errors
libnet/libnet_samsync_keytab.c: In function ‘fetch_sam_entries_keytab’:
libnet/libnet_samsync_keytab.c:102: warning: ‘entry.enctype’ is used uninitialized in this function

Fixed by initializing to ENCTYPE_NULL
2008-09-15 16:13:35 -07:00
Steven Danneman
47feb17228 Fix build warning on FreeBSD
Fix for the following build warning:

Compiling torture/cmd_vfs.c
torture/cmd_vfs.c: In function `cmd_open':
torture/cmd_vfs.c:275: warning: unsigned int format, different type arg (arg 3)
torture/cmd_vfs.c: In function `cmd_mknod':
torture/cmd_vfs.c:992: warning: unsigned int format, different type arg (arg 3)

sccanf had mismatched types for mode_t between formating parameter and var args.
2008-09-15 16:13:24 -07:00
Gerald W. Carter
62791bbd03 idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads structure. 2008-09-15 17:18:23 -05:00
Jeremy Allison
458101b577 Fix bug 5761 "open of mangled directory name results in 'is a stream name'"
reported by Regan Heath <Regan.Heath@BridgeHeadSoftware.com>.
Jeremy.
2008-09-15 14:21:28 -07:00
Jelmer Vernooij
a3a4c9a1fd Fix standalone build. 2008-09-15 15:49:27 +02:00
Jelmer Vernooij
25b08eb2e2 Add flag for merged build. 2008-09-15 15:16:54 +02:00
Jelmer Vernooij
b8e8e9f0a5 Ignore generated build files. 2008-09-15 14:56:46 +02:00
Jelmer Vernooij
99d4af748f Use new Samba 4 source location. 2008-09-15 14:32:58 +02:00
Jelmer Vernooij
c592ec0e13 Import merged build patch. 2008-09-15 14:30:15 +02:00
Stefan Metzmacher
4f2b99646b lib/tdb: sync build system changes and python code from samba4
metze
(This used to be commit bdb8ed2448)
2008-09-14 19:23:00 +02:00
Stefan Metzmacher
bedd2710fb lib/talloc: sync build system changes from samba4
metze
(This used to be commit 0143c320cc)
2008-09-14 19:18:12 +02:00
Andrew Bartlett
afbd57080b Skip strcmp() on 2 NULL pointers.
Andrew Bartlett
(cherry picked from commit 7b9a647ebb)
(This used to be commit 60f7bdac64)
2008-09-14 19:17:19 +02:00
Kai Blin
b725e9e586 r26514: Revert the talloc.c part of r26511, as talloc.h already takes care of thois.
Thanks to metze for pointing this out
(cherry picked from commit 4a5e1047ff)
(This used to be commit 523cc93f89)
2008-09-14 19:12:57 +02:00
Stefan Metzmacher
375ca336fe r26511: Janitorial: Fix a warning for the 'printf' attribute on gendb_search_v
While at it, also add a PRINTF_ATTRIBUTE for talloc_vasprintf.
(partialy cherry picked from commit 5b3a8c8ae1)
metze
(This used to be commit 0073e41a01)
2008-09-14 19:12:39 +02:00
Simo Sorce
79297bc132 Update homepages for talloc, tdb and ldb subprojects
(cherry picked from commit 8cb07814bc)
(This used to be commit 7d85b8d076)
2008-09-14 19:04:05 +02:00
Michael Adam
ed902d2f91 Adapt source code checkout information to git repo in talloc website.
Michael
(cherry picked from commit 254be79799)
(This used to be commit ac724cddc4)
2008-09-14 19:03:55 +02:00
Michael Adam
5806d2694d Fix paths for talloc into unpacked directory (rsync commands).
Michael
(cherry picked from commit 2839d7f67a)
(This used to be commit a891494d93)
2008-09-14 19:03:46 +02:00
Michael Adam
be9363deed Fix path to talloc guide. Noted by "teferi" on irc.
Michael
(cherry picked from commit bc4e03f2dd)
(This used to be commit 5e5528ff96)
2008-09-14 19:03:31 +02:00
Jelmer Vernooij
586084688a r25614: Add trivial tdb website.
(cherry picked from commit 6f88c41c31)
(This used to be commit 830f99fb5d)
2008-09-14 19:00:08 +02:00
Stefan Metzmacher
e86dc14d83 libreplace: include <krb5.h> and <com_err.h> and no heimdal specific headers
metze
(partialy cherry picked from commit cffed8e19e)
(This used to be commit f46a17b408)
2008-09-14 18:28:17 +02:00
Jelmer Vernooij
8f691ac524 Fix extra dash in command line flag.
(cherry picked from commit c823cfadb0)
(This used to be commit 176d624376)
2008-09-14 18:20:42 +02:00
Jeff Layton
73caef2c12 mount.cifs: make local versions of strlcat and strlcpy static
...to silence -Wmissing-prototypes

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit fc7c71f15b)
2008-09-12 21:21:33 -04:00
Jeff Layton
56d5149dc6 cifs.upcall: make most functions static and silence compiler warnings
...to silence -Wmissing-prototypes and some uninit'ed variable
warnings. Thanks to GD for the extra-paranoid compiler flags.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit f0ee2c145f)
2008-09-12 21:13:54 -04:00
Jeremy Allison
c7b75de962 Modify a comment to make things clearer.
Jeremy.
(This used to be commit 9d55ca85ff)
2008-09-12 15:03:05 -07:00
Volker Lendecke
ffbc38abe1 Factor out validate_smb_crypto
(This used to be commit 37fcc9dc46)
2008-09-12 23:09:17 +02:00
Volker Lendecke
ced409b5f7 Fix "make test" -- gna...
(This used to be commit c1d3ae80b5)
2008-09-12 22:29:56 +02:00
Volker Lendecke
0e9f348f1d Add a more explaining comment
(This used to be commit edd70836da)
2008-09-12 21:56:40 +02:00
Volker Lendecke
d892b1c886 remove a pointless empty line
(This used to be commit fba250ece4)
2008-09-12 21:42:34 +02:00
Volker Lendecke
f8f1679bc4 Add a paranoia check on incoming PDUs
(This used to be commit 8b81b85200)
2008-09-12 21:42:34 +02:00
Günther Deschner
cf3d089afa netapi: fix NetUserGetLocalGroups.
Guenther
(This used to be commit 5d91c9184c)
2008-09-12 14:12:52 +02:00
Günther Deschner
f792f87094 netapi: fix NetGroupGetUsers (only enumerates users).
Guenther
(This used to be commit a94318be46)
2008-09-12 14:12:33 +02:00
Günther Deschner
47dbe6f7ae netapi: fix NetUserSetGroups.
Guenther
(This used to be commit e8b27b69f3)
2008-09-12 14:12:24 +02:00
Günther Deschner
00ba381e09 netapi: fix NetGroupSetUsers.
Guenther
(This used to be commit 735bc2e425)
2008-09-12 14:12:14 +02:00
Günther Deschner
893f787314 doserr: add WERR_NO_SUCH_ALIAS.
Guenther
(This used to be commit e065802a61)
2008-09-12 14:10:26 +02:00
Günther Deschner
3f41545b61 messaging: move types to IDL.
Guenther
(This used to be commit 6c346d0eb2)
2008-09-12 14:09:42 +02:00
Jelmer Vernooij
41ebc6fe73 Reorder defines for version for consistency with Samba 4.
(This used to be commit fe36d83508)
2008-09-12 12:38:54 +02:00
Volker Lendecke
9c28ca2b6c fix nonempty blank lines
(This used to be commit 3111428dd4)
2008-09-12 12:23:30 +02:00
Jeremy Allison
cc5f51d5df Use the given name, not the absolute pathname, when printing out ACL info.
Make this match the non-ACL case.
Jeremy.
(This used to be commit e695c1cc2b)
2008-09-11 17:32:14 -07:00
Jeremy Allison
65ae60489d Fix bug #5751 cannot show ACLs on DFS reported by SATOH Fumiyasu <fumiyas@osstech.co.jp>.
Fix for smbclient and libsmbclient.
Jeremy.
(This used to be commit dbd5d6b145)
2008-09-11 16:20:59 -07:00
Simo Sorce
f25863e04c Fix for bug 5571
Make sure that usernames are parsed using the correct separator.
Otherwise group memeberships in winbind may be result broken.
(This used to be commit 20b9c0aa7b)
2008-09-11 09:51:39 -04:00
Günther Deschner
a2919ddd38 build: don't install the cifs.upcall binary twice.
Guenther
(This used to be commit 1f44b4aaa5)
2008-09-11 14:54:55 +02:00
Günther Deschner
cf1e3e5579 net: use netapi for NetFileEnum.
Guenther
(This used to be commit f85dcf8112)
2008-09-11 14:38:22 +02:00
Günther Deschner
e10a7af3c6 net: use netapi for NetFileClose.
Guenther
(This used to be commit fd3d130d25)
2008-09-11 14:38:12 +02:00
Günther Deschner
898a69ea0c netapi: implement NetFileEnum_r.
Guenther
(This used to be commit fd66b72fd0)
2008-09-11 14:38:05 +02:00
Günther Deschner
d556635bcc netapi: add NetFileEnum example code.
Guenther
(This used to be commit 32ee2dadab)
2008-09-11 14:37:56 +02:00
Günther Deschner
6b3308648c netapi: add NetFileEnum to public header.
Guenther
(This used to be commit 50ce2a3d1a)
2008-09-11 14:37:48 +02:00
Günther Deschner
13f28b5747 netapi: add NetFileEnum skeleton.
Guenther
(This used to be commit 8113249fe3)
2008-09-11 14:37:41 +02:00
Günther Deschner
96619efec3 re-run make idl.
Guenther
(This used to be commit 995dea4062)
2008-09-11 14:37:33 +02:00
Günther Deschner
e5ae75d001 netapi: add NetFileEnum to IDL.
Guenther
(This used to be commit 5c234a5373)
2008-09-11 14:37:25 +02:00
Günther Deschner
939d969490 netapi: add NetFileGetInfo example code.
Guenther
(This used to be commit 6615803642)
2008-09-11 14:37:18 +02:00
Günther Deschner
8ab0d696c5 netapi: add NetFileGetInfo to public header.
Guenther
(This used to be commit 5dd017b33f)
2008-09-11 14:37:11 +02:00
Günther Deschner
93ae66e01e netapi: implement NetFileGetInfo_r.
Guenther
(This used to be commit de84049bc1)
2008-09-11 14:37:02 +02:00
Günther Deschner
f2381acf5a netapi: add NetFileGetInfo skeleton.
Guenther
(This used to be commit 6c61c2e35e)
2008-09-11 14:36:55 +02:00
Günther Deschner
5986c67305 re-run make idl.
Guenther
(This used to be commit e82c7481a0)
2008-09-11 14:36:47 +02:00
Günther Deschner
092f92699d netapi: add IDL for NetFileGetInfo.
Guenther
(This used to be commit 368b4d262a)
2008-09-11 14:36:39 +02:00
Günther Deschner
cb1e34745b netapi: implement NetFileClose_r.
Guenther
(This used to be commit 0cbbdf21ed)
2008-09-11 14:36:28 +02:00
Günther Deschner
120e7ba1f4 netapi: add NetFileClose example code.
Guenther
(This used to be commit 9d6e365534)
2008-09-11 14:36:21 +02:00
Günther Deschner
bbd2eeb0f6 netapi: add NetFileClose to public header.
Guenther
(This used to be commit 502bbf00fa)
2008-09-11 14:36:12 +02:00
Günther Deschner
1aff853427 netapi: add NetFileClose skeleton.
Guenther
(This used to be commit 4a006ae644)
2008-09-11 14:36:05 +02:00
Günther Deschner
e6467a3e90 re-run make idl.
Guenther
(This used to be commit 74edd3e853)
2008-09-11 14:35:57 +02:00
Günther Deschner
5dbda0aa89 netapi: add NetFileClose to IDL.
Guenther
(This used to be commit e48900e902)
2008-09-11 14:35:49 +02:00
Günther Deschner
2474026c00 netapi: implement NetUserGetLocalGroups_r.
Guenther
(This used to be commit 969bc7ce3d)
2008-09-11 14:31:06 +02:00
Günther Deschner
434ff0ddc8 netapi: add NetUserGetLocalGroups example code.
Guenther
(This used to be commit 7d05936ff4)
2008-09-11 14:30:56 +02:00
Günther Deschner
f87901f7e4 netapi: add NetUserGetLocalGroups to public header.
Guenther
(This used to be commit 299f76f4ce)
2008-09-11 14:30:49 +02:00
Günther Deschner
40e9ddd6e4 netapi: add NetUserGetLocalGroups skeleton.
Guenther
(This used to be commit b31209e449)
2008-09-11 14:30:42 +02:00
Günther Deschner
f5c2e5890e re-run make idl.
Guenther
(This used to be commit 3c07bcfb30)
2008-09-11 14:30:35 +02:00
Günther Deschner
e17da26aa0 netapi: add NetUserGetLocalGroups to IDL.
Guenther
(This used to be commit 4f13450c6a)
2008-09-11 14:30:27 +02:00
Günther Deschner
a5bf77be86 netapi: fix group_getusers example.
Guenther
(This used to be commit a977e18a66)
2008-09-11 14:30:18 +02:00
Günther Deschner
de1ec0f40c netapi: implement NetGroupGetUsers_r.
Guenther
(This used to be commit 7b77dacde5)
2008-09-11 14:30:08 +02:00
Günther Deschner
9e7a0a8ddb netapi: implement NetGroupSetUsers_r.
Guenther
(This used to be commit 0ba0ffdb30)
2008-09-11 14:30:00 +02:00
Günther Deschner
dcdca803fc netapi: add example code for NetGroupSetUsers.
Guenther
(This used to be commit dc7994195c)
2008-09-11 14:29:52 +02:00
Günther Deschner
b6d861a9c0 netapi: add NetGroupSetUsers to public header.
Guenther
(This used to be commit 72a0b27aec)
2008-09-11 14:29:44 +02:00
Günther Deschner
ffdfe3e8b4 netapi: add skeleton for NetGroupSetUsers.
Guenther
(This used to be commit 4d92d000a1)
2008-09-11 14:29:36 +02:00
Günther Deschner
52e87e1fc1 re-run make idl.
Guenther
(This used to be commit 00af97de40)
2008-09-11 14:29:28 +02:00
Günther Deschner
4536446cac netapi: add IDL for NetGroupSetUsers.
Guenther
(This used to be commit 5040f6af41)
2008-09-11 14:29:20 +02:00
Günther Deschner
d26bd64f95 netapi: implement NetUserSetGroups_r.
Guenther
(This used to be commit 2ddee7577d)
2008-09-11 14:29:10 +02:00
Günther Deschner
2fb0f6c995 netapi: add example code for NetUserSetGroups.
Guenther
(This used to be commit 1355939b4c)
2008-09-11 14:29:02 +02:00
Günther Deschner
fce223602e netapi: add NetUserSetGroups to public header.
Guenther
(This used to be commit 3e96cd229c)
2008-09-11 14:28:54 +02:00
Günther Deschner
cbcebf0f08 netapi: add skeleton for NetUserSetGroups.
Guenther
(This used to be commit 165be948fa)
2008-09-11 14:28:46 +02:00
Günther Deschner
f2a987bced re-run make idl.
Guenther
(This used to be commit 4efbd56947)
2008-09-11 14:28:38 +02:00
Günther Deschner
5c36529140 netapi: add IDL for NetUserSetGroups.
Guenther
(This used to be commit 6b35856c21)
2008-09-11 14:28:30 +02:00
Günther Deschner
35c96827b4 netapi: make add_GROUP_USERS_INFO_X_buffer non-static.
Guenther
(This used to be commit 87fc15d9b5)
2008-09-11 14:28:19 +02:00
Günther Deschner
93eb9860c6 netapi: fix NetShareEnum_r.
Guenther
(This used to be commit 7e8903b53b)
2008-09-11 14:25:02 +02:00
Günther Deschner
07585d9fb7 netapi: fix NetShareGetInfo_r.
Guenther
(This used to be commit b42408f54e)
2008-09-11 14:24:53 +02:00
Günther Deschner
a780ed8970 net: use netapi for NetShareEnum.
Guenther
(This used to be commit f4cb75b1e2)
2008-09-11 14:21:48 +02:00
Günther Deschner
d323e48abe netapi: fix NetShareEnum_r which in fact enumerates all shares.
Guenther
(This used to be commit 0637ad872e)
2008-09-11 14:21:40 +02:00
Günther Deschner
1a32fbeb86 netapi: fix doxygen warning.
Guenther
(This used to be commit e0312728a5)
2008-09-11 14:21:11 +02:00
Jeremy Allison
5f3160ce27 Fix bug #5052 - not work cancel inheritance on share. We were
using the parent security descriptor type and flags instead
of using the passed in SD.
Jeremy.
(This used to be commit 0d824d7188)
2008-09-10 16:22:51 -07:00
Jeremy Allison
cb40b1ae83 When requesting UNIX info levels on findfirst/findnext, don't play games with write time,
just return what the underlying filesystem says. Trying not to confuse UNIX apps any more than necessary.
Jeremy.
(This used to be commit b81a4dd003)
2008-09-10 14:54:25 -07:00
Jeremy Allison
3978317af0 Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy.
(This used to be commit a59bd0e485)
2008-09-10 10:18:02 -07:00
Kai Blin
5b54781e1c net: share_type is defined in net_rap.c, net_rpc.c needs to use that.
This fixes a crash in net rpc share that Günther Deschner found.
(This used to be commit 50af6d609d)
2008-09-10 12:05:18 +02:00
Volker Lendecke
40b93006c1 Fix some bogus compiler warnings
(This used to be commit 84ed752d9f)
2008-09-10 11:57:10 +02:00
Volker Lendecke
a1d0f59f46 Fix make test on sparc and possibly also on AIX
(This used to be commit 5721205bff)
2008-09-09 22:23:05 +02:00
Jelmer Vernooij
c82f268a1c Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
(This used to be commit c3d1b00975)
2008-09-09 19:27:00 +02:00
Jelmer Vernooij
372ecdfde3 Stop ignoring .svn directories when creating tags, since we no longer use
svn.
(This used to be commit 151c78652a)
2008-09-09 19:05:48 +02:00
Jelmer Vernooij
66060a0ba7 Rename object variables to avoid clashes with Samba 4.
(This used to be commit c77758de5d)
2008-09-09 19:03:49 +02:00
Volker Lendecke
7965249bd6 Convert cli_query_secdesc to the async trans call
(This used to be commit ab41017896)
2008-09-09 17:37:34 +02:00
Volker Lendecke
bb2a7183b9 Convert cli_qfileinfo to the async trans call
(This used to be commit ddc5e77b61)
2008-09-09 17:37:34 +02:00
Volker Lendecke
c81b5fd440 Add async trans/trans2/nttrans calls to libsmb
Logic stolen from Samba4, naturally the specific implementation differs a bit.
(This used to be commit 4b8bc5b03d)
2008-09-09 17:37:34 +02:00
Volker Lendecke
0b31c97e82 Add some debug to reply_nttrans
(This used to be commit 23e9fed28c)
2008-09-09 17:37:34 +02:00
Volker Lendecke
2a93452994 Move setting the mid field in req->outbuf from _cork to _uncork
The async trans calls need this, as for secondary trans calls they have to
modify the MID from what cli_request_chain() gave us.
(This used to be commit c85de4b7b5)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6ba8c105c5 Add utility function cli_in_chain()
This gives a hint whether a function is called from within the middle of a
chain. In particular the trans calls don't really like this.
(This used to be commit 4252b32db5)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6344b8ec27 make smb_bytes_push_str public
(This used to be commit d611f599b4)
2008-09-09 17:37:34 +02:00
Volker Lendecke
ce47a2b2e3 Add a utility function to append a DATA_BLOB to a talloc object
(This used to be commit d8259cbe66)
2008-09-09 17:37:34 +02:00
Volker Lendecke
7fafa9756a Fix a memleak in cli_qfilename (only used in smbtorture)
(This used to be commit 7e0cca19fe)
2008-09-09 09:54:36 +02:00
Volker Lendecke
d39e9e05ed Fix calculation of useable_space for trans2 and nttrans replies
When alignment was in place, we pretended to send more data/params according to
the param_offset/param_length and data_offset/data_length parameters than would
actually fit into the SMB according to the NBSS length field.
(This used to be commit ef3c132b84)
2008-09-08 23:32:22 +02:00
Volker Lendecke
d4b41079cb When setting an NFSv4 ACL, map generic bits
(This used to be commit dbe7a61be2)
2008-09-08 16:53:54 +02:00
Volker Lendecke
95b366d8e1 Thanks metze for pointing out the missing extern :-)
(This used to be commit b62540cd48)
2008-09-08 16:40:09 +02:00
Stefan Metzmacher
c9fb96146c smbd: some write time fixes
- only the first non truncating write causes
  the write time update with 2 seconds delay.
  It's not enough to check for an existing update event
  as it will be NULL after the event was triggered.

- SMBwrite truncates always update the write time
  unless the sticky write time is set.

- SMBwrite truncates don't trigger a write time update on close.

metze
(This used to be commit 3d17089b6d)
2008-09-08 16:25:41 +02:00
Volker Lendecke
ae02be5287 Remove some duplicate code
(This used to be commit 564bfe94ac)
2008-09-08 16:01:19 +02:00
Günther Deschner
7089c800c1 netapi: expand NetUser testsuite a little.
Guenther
(This used to be commit fc1b04df78)
2008-09-08 10:18:27 +02:00
Günther Deschner
c01d0c0bdf netapi: add NetShare testsuite.
Guenther
(This used to be commit 07cf13e43d)
2008-09-08 10:17:48 +02:00
Günther Deschner
c464969b64 net: use NETSETUP flags consistently.
Guenther
(This used to be commit f48e0cacdf)
2008-09-08 10:17:21 +02:00
Günther Deschner
a828a644d0 netapi: re-arrange a little NetLocalGroupSetMembers example code.
Guenther
(This used to be commit 84a25e6994)
2008-09-08 10:17:06 +02:00
Günther Deschner
9194109e6c netapi: fix NetShareGetInfo example output.
Guenther
(This used to be commit 00ecf8205c)
2008-09-08 10:16:48 +02:00
Jeremy Allison
e76cb70444 Fix debug message to show correct function name.
Jeremy.
(This used to be commit 079c75ef3c)
2008-09-05 20:37:00 -07:00
Jeremy Allison
405b072431 Write times code update.
Ok, here's the fix for the write times breakage
with the new tests in S4 smbtorture.

The key is keeping in the share mode struct
the "old_file_time" as the real write time,
set by all the write and allocation calls,
and the "changed_write_time" as the "sticky"
write time - set by the SET_FILE_TIME calls.

We can set them independently (although I
kept the optimization of not setting the
"old_file_time" is a "changed_write_time"
was already set, as we'll never see it.

This allows us to update the write time
immediately on the SMBwrite truncate case,
SET_END_OF_FILE and SET_ALLOCATION_SIZE calls,
whilst still have the 2 second delay on the
"normal" SMBwrite, SMBwriteX calls.

I think in a subsequent patch I'd like to
change the name of these from "old_file_time"
to "write_time" and "changed_write_time" to
"sticky_write_time" to make this clearer.

I think I also fixed a bug in Metze's original
code in that once a write timestamp had been
set from a "normal" SMBwriteX call the fsp->update_write_time_triggered
variable was set and then never reset - thus
meaning the write timestamp would never get
updated again on subsequent SMBwriteX's.

The new code checks the update_write_time_event
event instead, and doesn't update is there's
an event already scheduled.

Metze especially, please check this over for
your understanding.

Jeremy.
(This used to be commit 6f20585419)
2008-09-05 19:00:48 -07:00
Jeremy Allison
a90ba70cbf Remove unecessary msync.
Jeremy.
(This used to be commit 0bae1ef3de)
2008-09-05 15:32:22 -07:00
Jeremy Allison
beb19da53f Fix "warning: pointer of type 'void *' used in arithmetic".
Jeremy.
(This used to be commit 2d95ea38a2)
2008-09-05 15:20:59 -07:00
Günther Deschner
ce9d896781 Revert "winbindd: the ad trusted_domains call should return talloced strings."
This reverts commit b57cbf62e8.
(This used to be commit b2a3f13e5b)
2008-09-05 23:29:54 +02:00
Qiao Yang
38c287740f Fix a memleak
request.extra_data is not freed if there is no extra_data in response or
when there is some error happens in processing. This patch will free the
buffer right after processing a request before sending back a response.
(This used to be commit be6f12273f)
2008-09-05 14:13:39 +02:00
Günther Deschner
7c74e379a5 re-run make idl.
Guenther
(This used to be commit 2e15036bac)
2008-09-05 13:22:59 +02:00
Günther Deschner
3709e37770 netapi: add SHARE_INFO_1005_FLAGS.
Guenther
(This used to be commit f3044d7653)
2008-09-05 13:22:54 +02:00
Günther Deschner
05449814e9 netapi: implement NetShareSetInfo_r.
Guenther
(This used to be commit ebcd45ed3f)
2008-09-05 13:22:47 +02:00
Günther Deschner
136ddc8f04 netapi: add support for level 1004 in
map_SHARE_INFO_buffer_to_srvsvc_share_info.

Guenther
(This used to be commit f21a934e1e)
2008-09-05 13:22:39 +02:00
Günther Deschner
86df00a388 netapi: add NetShareSetInfo example code.
Guenther
(This used to be commit a7050c999f)
2008-09-05 13:22:31 +02:00
Günther Deschner
09e96f2a98 netapi: add NetShareSetInfo to public header.
Guenther
(This used to be commit 2066ebc5e3)
2008-09-05 13:22:22 +02:00
Günther Deschner
582a48d89c netapi: add skeleton for NetShareSetInfo.
Guenther
(This used to be commit 4d7947e549)
2008-09-05 13:22:14 +02:00
Günther Deschner
f97cb336fc re-run make idl.
Guenther
(This used to be commit 7d863c4b00)
2008-09-05 13:22:07 +02:00
Günther Deschner
e14fa8a2c5 netapi: add NetShareSetInfo to IDL.
Guenther
(This used to be commit 22f3720633)
2008-09-05 13:21:57 +02:00
Günther Deschner
c38546ad9d netapi: implement NetShareEnum_r.
Guenther
(This used to be commit 3fbfbaea00)
2008-09-05 13:21:49 +02:00
Günther Deschner
cdb31ef2f9 netapi: implement NetShareGetInfo_r.
Guenther
(This used to be commit 029cf4a2a9)
2008-09-05 13:21:34 +02:00
Günther Deschner
15a3ec1467 netapi: add NetShareGetInfo example code.
Guenther
(This used to be commit 0166c8f04b)
2008-09-05 13:21:26 +02:00
Günther Deschner
93cb6d26d1 netapi: add NetShareGetInfo to public header.
Guenther
(This used to be commit 5c63b181ec)
2008-09-05 13:21:19 +02:00
Günther Deschner
fda790bb5d netapi: add skeleton for NetShareGetInfo.
Guenther
(This used to be commit 237c6e0bca)
2008-09-05 13:21:12 +02:00
Günther Deschner
536788efda re-run make idl.
Guenther
(This used to be commit dab613e930)
2008-09-05 13:21:05 +02:00
Günther Deschner
723dfffed7 netapi: add IDL for NetShareGetInfo.
Guenther
(This used to be commit 5d66907529)
2008-09-05 13:20:57 +02:00
Günther Deschner
150911f33e netapi: remove NetSetup* flags from netdomjoin-gui.
Guenther
(This used to be commit 5851b4e40e)
2008-09-05 13:18:25 +02:00
Günther Deschner
72718e0899 netapi: add NETSETUP_JOIN_STATUS to public header.
Guenther
(This used to be commit 86de3242a4)
2008-09-05 13:18:16 +02:00
Günther Deschner
cd3d4ff638 re-run make idl.
Guenther
(This used to be commit f87caa7bff)
2008-09-05 13:18:09 +02:00
Günther Deschner
9ae47df5c7 netapi: add NETSETUP_JOIN_STATUS to IDL.
Guenther
(This used to be commit c5ab5bf841)
2008-09-05 13:18:01 +02:00
Günther Deschner
988058cf87 re-run make idl.
Guenther
(This used to be commit 383d268f8c)
2008-09-05 13:17:54 +02:00
Günther Deschner
dbcdc6262a wkssvc: rename wkssvc_NetJoinStatus flags.
Guenther
(This used to be commit 9afc888356)
2008-09-05 13:17:46 +02:00
Günther Deschner
51e962331c netapi: move join related examples to one directory.
Guenther
(This used to be commit afdd14c26c)
2008-09-05 13:13:59 +02:00
Günther Deschner
e8f8ae407f netapi: add NetRenameMachineInDomain example code.
Guenther
(This used to be commit e28c332f32)
2008-09-05 13:13:51 +02:00
Günther Deschner
8cb544e2a1 netapi: implement NetRenameMachineInDomain_r.
Guenther
(This used to be commit 39a42380ca)
2008-09-05 13:13:44 +02:00
Günther Deschner
10e8f90a65 netapi: add NetRenameMachineInDomain to public header.
Guenther
(This used to be commit b66cee247f)
2008-09-05 13:13:36 +02:00
Günther Deschner
c8334dc708 netapi: add skeleton for NetRenameMachineInDomain.
Guenther
(This used to be commit 03a7f7f333)
2008-09-05 13:13:29 +02:00
Günther Deschner
17fa14d8ee re-run make idl.
Guenther
(This used to be commit 038ec4d73a)
2008-09-05 13:13:22 +02:00
Günther Deschner
5ed3412488 netapi: add NetRenameMachineInDomain to IDL.
Guenther
(This used to be commit 8a5b0b6392)
2008-09-05 13:13:14 +02:00
Günther Deschner
231de7054a netdomjoin-gui: fix some widget closing callbacks.
Guenther
(This used to be commit 8d541a3579)
2008-09-05 13:06:26 +02:00
Günther Deschner
685f7e3419 netdomjoin-gui: always center new windows.
Guenther
(This used to be commit af25bd95d2)
2008-09-05 13:06:16 +02:00
Günther Deschner
b0ab216cd5 netdomjoin-gui: fix some small errors in callbacks.
Guenther
(This used to be commit 74031b0b4a)
2008-09-05 13:06:09 +02:00
Günther Deschner
78ed824dab netdomjoin-gui: add gtk set_transient flags.
Guenther
(This used to be commit c979b96eb4)
2008-09-05 13:06:01 +02:00
Günther Deschner
6dff24790f netdomjoin-gui: test all NetServerGetInfo levels until we get comment.
(This used to be commit 56d353b406)
2008-09-05 13:05:53 +02:00