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

466 Commits

Author SHA1 Message Date
Michael Adam
b3e5082e10 r23714: but now:
This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.

Michael
2007-10-10 12:23:48 -05:00
Michael Adam
ae23e6d04b r23713: Oops accidentially checked in the wrong file - sorry!
Michael
2007-10-10 12:23:48 -05:00
Michael Adam
0c03c78af8 r23712: This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.

Michael
2007-10-10 12:23:47 -05:00
Michael Adam
26349c0b17 r23711: Refactor the actual creation of object into its own small function.
Michael
2007-10-10 12:23:47 -05:00
Michael Adam
8b81fbb7d9 r23706: Add a script to create domainusers,-groups and -aliases.
This is done via rpc client. The main purpose is to
be able to fill a domain controller with a large number
of users / groups easily. A the object names are
built as <prefix><num> where number ranges from a given
start number counting up until a given number of objects
has been created.

In a next step, I will submit scripts to add (many) users to
a group and to add a user to (many) groups.

Michael
2007-10-10 12:23:47 -05:00
Lars Müller
d26914c978 r23704: Add pam_pwd_expire feature as discussed on samba-technical.
This is a slightly modified version to set warn_pwd_expire to the
default value if 0, no, or a broken value is set.

This version also has one if statement less in get_config_item_int().

Thanks a lot to Andreas 'GlaDiaC' Schneider for this feature!
2007-10-10 12:23:46 -05:00
Jeremy Allison
fc6899a550 r23620: Convert set_nt_acl to return NTSTATUS. Also fix the chown
return to correctly return NT_STATUS_INVALID_OWNER if it
should be disallowed. Matches better what W2K3R3 does.

NFSv4 ACL module owners, please examine these changes.

Jeremy.
2007-10-10 12:23:37 -05:00
Günther Deschner
865bdcacae r23484: When chasing AD referrals make sure to honor the base returned from the server.
Guenther
2007-10-10 12:23:20 -05:00
Jeremy Allison
932523cbb5 r23105: Add lchown to the vfs layer. We need this in the POSIX code.
Jeremy.
2007-10-10 12:22:46 -05:00
Derrell Lipman
7213b5ebec r22914: - Fixes bug 4599. A missing <code>if</code> statement forced subseqeuent
attempts to set attributes to fail.

- I also noticed that missing attributes were setting an invalid return string
  by getxattr(), e.g. if there was not group, the return string had "GROUP:;"
  instead of excluding the GROUP attribute entirely as it should.  The big
  problem with the way it was, is that the string could not then be passed to
  setxattr() and parsed.
2007-10-10 12:22:07 -05:00
Lars Müller
37f2191cd3 r22805: Inform in examples/pdb about the location of the external support for
the SQL backends.
2007-10-10 12:21:59 -05:00
Günther Deschner
5b4a4df26f r22794: Add "debug_state" and "silent" to pam_winbind.conf template. Honor the silent
argument when parsing pam configuration file options.

Guenther
2007-10-10 12:21:57 -05:00
Jeremy Allison
aa5a1591c6 r22591: Fix up the examples also.
Jeremy.
2007-10-10 12:19:49 -05:00
Michael Adam
e711005828 r22341: Fix build of examples/VFS: adapt include for new place of tdb... 2007-10-10 12:19:27 -05:00
Derrell Lipman
c65621e0b7 r22130: - Ensure that the libsmbclient example programs link with the libsmbclient
library that's part of the current tree, not with whatever happens to have
  been previously installed.
2007-10-10 12:19:15 -05:00
James Peach
1106db7ea1 r21762: Fix the build by enabling shared modules and adding the config.*
files. Add norify_watch and chflags operations. Fix a bunch of
warnings.
2007-10-10 12:18:29 -05:00
Jeremy Allison
8f3d530c5a r21714: Change the VFS interface to use struct timespec
for utimes - change the call to ntimes. This preserves
nsec timestamps we get from stat (if the system supports
it) and only maps back down to usec or sec resolution
on time set. Looks bigger than it is as I had to move
lots of internal code from using time_t and struct utimebuf
to struct timespec.
Jeremy.
2007-10-10 12:18:24 -05:00
Günther Deschner
97ce4ccea2 r21345: Smaller fixes for adssearch:
* get rid of horrible ads.h parsing
* add LDAP_SERVER_SHUTDOWN_NOTIFY_OID
* display hex bitmasks

Guenther
2007-10-10 12:17:57 -05:00
Günther Deschner
aa135c960e r21105: Quick fix for CLDAP reply without NetLogon attribute.
Guenther
2007-10-10 12:17:37 -05:00
Volker Lendecke
4610465d7f r20979: Fix description, thanks to Michael Adam <ma@sernet.de> 2007-10-10 12:17:22 -05:00
Gerald Carter
a209c30849 r20884: patch from Michael Adam <ma@sernet.de> to add new sambaTrustedDomainPassword object class 2007-10-10 12:17:18 -05:00
Stefan Metzmacher
5373897ef5 r20585: - allocate an OID range for LDB/LDAP extended operations
metze
2007-10-10 12:16:56 -05:00
Stefan Metzmacher
6fedd69f5e r20578: - allocate an OID range for samba4 LDB/LDAP Controls
- allocate an OID range for conflicting attributes/classes

metze
2007-10-10 12:16:56 -05:00
Volker Lendecke
ab0a41c13b r19857: Make the perfcounter compile after tdb changes 2007-10-10 12:16:03 -05:00
James Peach
fa69031d00 r19852: Fix the build for the VFS examples. Fixes bugzilla #3931. 2007-10-10 12:16:02 -05:00
Günther Deschner
8a2dded7fb r19745: For the fun of it, add an CLDAP client written in perl.
Guenther
2007-10-10 12:15:52 -05:00
Günther Deschner
27fbd85300 r19345: Allow better rootdse searches.
Guenther
2007-10-10 12:15:30 -05:00
Günther Deschner
d6849a83c0 r18697: Make sure that adssearch.pl does not
* chase referrals
* use paged search control

when using the LDAP change notify control for monitoring changes.

Guenther
2007-10-10 12:00:48 -05:00
Derrell Lipman
fc5b6e4bd8 r18012: Should fix bug 4018.
NetApp filers expect paths in Open AndX Request to have a leading slash.
Windows clients send the leading slash, so we should too.
2007-10-10 11:39:48 -05:00
Derrell Lipman
fa664b24b8 r18011: Should fix bug 3835.
Jeremy: requires your eyes...

If the remote connection timed out while cli_list() was retrieving its list of
files, the error was not returned to the user, e.g. via smbc_opendir(), so the
user didn't have a way to know to set the timeout longer and try again.  This
problem would occur when a very large directory is being read with a too-small
timeout on the cli.

Jeremy, although there were a couple of areas that needed to be handled, I
needed to make one change that you should bless, in libsmb/clientgen.c.  It
was setting

  cli->smb_rw_error = smb_read_error;

but smb_read_error is zero, so this had no effect.  I'm now doing

  cli->smb_rw_error = READ_TIMEOUT;

instead, and according to the OP, these (cumulative) changes (in a slightly
different form) solve the problem.

Please confirm this smb_rw_error change will have no other adverse effects
that you can see.

Derrell
2007-10-10 11:39:48 -05:00
Derrell Lipman
8e119b64f1 r18009: Fixes bug 4026.
This completes the work Jeremy began last week, disambiguating the meaning of
c_time.  (In POSIX terminology, c_time means "status Change time", not "create
time".)  All uses of c_time, a_time and m_time have now been replaced with
change_time, access_time, and write_time, and when creation time is intended,
create_time is used.

Additionally, the capability of setting and retrieving the create time have
been added to the smbc_setxattr() and smbc_getxattr() functions.  An example
of setting all four times can be seen with the program

  examples/libsmbclient/testacl

with the following command line similar to:

  testacl -f -S "system.*:CREATE_TIME:1000000000,ACCESS_TIME:1000000060,WRITE_TIME:1000000120,CHANGE_TIME:1000000180" 'smb://server/share/testfile.txt'

The -f option turns on the new mode which uses full time names in the
attribute specification (e.g. ACCESS_TIME vs A_TIME).
2007-10-10 11:39:47 -05:00
Andrew Bartlett
199a33ac80 r17487: Allocate some OID space for Samba4, so we don't trip on each other.
Andrew Bartlett
2007-10-10 11:38:37 -05:00
Jeremy Allison
330899ec30 r17367: Reverting the ab code. Note I'm not saying this
code is wrong or bad or anything, just that it
needs to be discussed & reviewed on the samba-technical
list before we add a platform-specific NFSv4 mapping.
That way lies a lot of future pain :-).
Jeremy.
2007-10-10 11:38:29 -05:00
Alexander Bokovoy
c085355c32 r17358: Re-add JFS2 NFS4 ACLs support, move readme for it into AIX-specific examples directory. 2007-10-10 11:38:28 -05:00
Alexander Bokovoy
72312cb2e2 r17353: Add support for JFS2 NFS4/AIXC and GPFS acls based on NFSv4 ACLs. 2007-10-10 11:38:27 -05:00
Gerald Carter
34ad8e183c r16998: patch from Paul Griffith <paulg@cs.yorku.ca> to fix compile of the test.c pdb file 2007-10-10 11:19:17 -05:00
Jeremy Allison
508ba05a8e r16948: Sync the exmaples code from trunk.
Jeremy.
2007-10-10 11:19:14 -05:00
Jeremy Allison
f131bf8f16 r16943: Add Jim's code.
Jeremy.
2007-10-10 11:19:13 -05:00
Gerald Carter
eac00a45ef r16752: remove the 'socket options' setting from the shipped default smb.conf 2007-10-10 11:19:10 -05:00
Günther Deschner
6df2a39110 r16719: Automatically chase referrals, support LDAP fast bind exended operation
and LDAP domain scope control.

Guenther
2007-10-10 11:19:09 -05:00
Derrell Lipman
c1b4c51053 r16550: Fix bug 3866. Thanks for the report!
Although I've never met a computer or compiler that produced pointers to
functions which are a different size than pointers to data, I suppose they
probably exist.  Assigning a pointer to a function is technically illegal in C
anyway.

Change casts of the option_value based on the option_name to use of variable
argument lists.

For binary compatibility, I've maintained but deprecated the old behavior of
debug_stderr (which expected to be passed a NULL or non-NULL pointer) and
added a new option debug_to_stderr which properly expects a boolean (int)
parameter.

Derrell
2007-10-10 11:18:59 -05:00
Günther Deschner
f19f781e15 r16521: Fix different extended_dn handling for win2k/2k3 (thanks to Frederic
Brin at Novell).

Guenther
2007-10-10 11:18:57 -05:00
Günther Deschner
2922c7f570 r15250: dump some more sids.
Guenther
2007-10-10 11:16:30 -05:00
Lars Müller
27044d23ff r15094: Replace ; by # where we have a comment and remove superfluous spaces at
the end of lines.
2007-10-10 11:16:22 -05:00
Günther Deschner
01e46b8c6e r15058: Add sample pam_winbind.conf file.
Guenther
2007-10-10 11:16:00 -05:00
Jeremy Allison
08e52ead03 r15018: Merge Volker's ipc/trans2/nttrans changes over
into 3.0. Also merge the new POSIX lock code - this
is not enabled unless -DDEVELOPER is defined.
This doesn't yet map onto underlying system POSIX
locks. Updates vfs to allow lock queries.
Jeremy.
2007-10-10 11:15:57 -05:00
Gerald Carter
63efbdf005 r14825: add support for max connections parameter 2007-10-10 11:15:49 -05:00
Jelmer Vernooij
15c36233fb r14684: Remove obsolete file (belonged to pdb_xml) 2007-10-10 11:15:44 -05:00
Derrell Lipman
203b4911c1 r14664: r13868@cabra: derrell | 2006-03-22 17:04:30 -0500
Implement enhancement request 3505.  Two additional features are added here.
 There is now a method of saving an opaque user data handle in the smbc_
 context, and there is now a way to request that the context be passed to the
 authentication function.  See examples/libsmbclient/testbrowse.c for an example
 of using these features.
2007-10-10 11:15:42 -05:00
Gerald Carter
2c0a46d731 r14451: In order to get pdb_ldap searching for SID_NAME_ALIAS
groups in the ${MACHINESID} and S_1-5-32 domains correctly,
I had to add a substr search on sambaSID.

* add substr matching rule to OpenLDAP schema
  (we need to update the other schema as will since this
  is a pretty important change).  Sites will need to
  - install the new schema
  - add 'indea sambaSID   sub' to slapd.conf
  - run slapindex

* remove uses of SID_NAME_WKN_GRP in pdb_ldap.c
2007-10-10 11:15:30 -05:00