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

6099 Commits

Author SHA1 Message Date
Andrew Tridgell
7f9fe00d35 added nsstest target
fixed winbindd_rpc.o typo
(This used to be commit 2ce7f38fe96c6f5faf45d3c71a3c8d3386ea5107)
2001-12-03 04:09:43 +00:00
Andrew Tridgell
fc85c8a3eb fixed default location of libnss_winbind.so
(This used to be commit adc9268216f87d915c9d971137b859c949e150dd)
2001-12-03 03:57:34 +00:00
Andrew Tridgell
37749cbb04 fixed the nsswitch initgroups code
added a nsstest test program that directly tests all the nss
interfaces using dlopen()
(This used to be commit aee19090d3b957372b234a412cd9db8896650feb)
2001-12-03 03:53:57 +00:00
Martin Pool
e0adf6e27e Writing decimal constants as "02" has been shown to cause cancer in
rats.
(This used to be commit 142d3dad0ab6870acb0d46d1f189d5e2e1f71b17)
2001-12-03 02:30:27 +00:00
Andrew Tridgell
78169af90a split winbindd_enum_dom_groups into the new backend structure
also created winbindd_rpc.c which contains the functions that
have been converted to the new structure. There will soon be
a winbindd_ads.c for the ldap backend
(This used to be commit e4ccc602ba65838646f2632120069f3274619dd9)
2001-12-03 01:23:42 +00:00
Tim Potter
3171064521 Updated definition of fstring.
print_asc(): Don't try to print a trailing NULL character
print_key(), print_rec(): Display key in ASCII
(This used to be commit 303b3a35951211775a4e87bcca47cc21236aa422)
2001-12-03 00:23:14 +00:00
Andrew Tridgell
61f68bde82 re-enabled insure backtrace, calling /usr/bin/backtrace
(This used to be commit 21a366afbe9dc5f4878f97bb03525452bbbc4e41)
2001-12-03 00:21:51 +00:00
Andrew Tridgell
e101224d83 init group db before use
this fixes the smbpasswd segvs
(This used to be commit d2bcdfd995b9562872d865e723b23ed84247a73f)
2001-12-03 00:00:43 +00:00
Jean-François Micouleau
633ee99afa added queryuseraliases to rpcclient
and some comments to the samr server code, to explain what we should
return here.

	J.F.
(This used to be commit 06cb20a46d9d9f8abf0d92ba4cfa4d23187ad715)
2001-12-02 01:45:50 +00:00
Jean-François Micouleau
043dfe985c there was a bug in samr_lookup_names (my fault)
and added comments and some debugs.

	J.F.
(This used to be commit 114eba496fa020a7f491eb549c91fb38ca34dabb)
2001-12-02 00:06:10 +00:00
Jean-François Micouleau
83304678a0 added mapping of primary gid to rid thru the group mapping code.
and cleanup and comments in passdb/passdb.c


	J.F.
(This used to be commit 6533339887832ca6dd42d99385c615db7bee3d43)
2001-12-02 00:03:35 +00:00
Jean-François Micouleau
d383b618b4 added samr_query_sec_obj. and put back some code to display a security
descriptor.

added to samr_lookup_name the choice to select the either the builtin
(s-1-5-32) domain or our current domain (s-1-5-21-x-y-z)

	J.F.
(This used to be commit d9d1486165591d9f7dad04f197fa692654a17a59)
2001-12-02 00:00:21 +00:00
Jean-François Micouleau
d78f6366e8 added samr_query_sec_obj for rpcclient
J.F.
(This used to be commit d8809c58614cd97ef78d398645788e41022a8c39)
2001-12-01 23:57:11 +00:00
Jean-François Micouleau
92a2d1d463 groups in the Builtin domain S-5-32 are alias and not well-known groups
J.F.
(This used to be commit 192978e3fc96bc60fc3ceaad8f024bc91bf69da7)
2001-12-01 23:56:05 +00:00
Jean-François Micouleau
f3bffe143c removed the #ifdef USING_GROUPNAME_MAP/#endif blocks
that GROUPNAME_MAP has never been used.

I'll delete the smbd/groupname.c file too

	J.F.
(This used to be commit 2285e98f205752ec801d11b4bb9afa33e768fd93)
2001-12-01 23:53:32 +00:00
Jean-François Micouleau
df5dd906a7 added smbgroupedit to compile by default
J.F.
(This used to be commit 540a6122dc58a216a94a11a36baa209521dd1981)
2001-12-01 23:51:21 +00:00
Andrew Tridgell
de744cb970 The beginnings of alternative backends for winbindd
This just splits off the dispinfo call behind a methods structure.
I'll split off a few more functions soon, then we will be ready for
LDAP replacement methods
(This used to be commit 0216b0fca115c903ec31ed21427a83c62077dc95)
2001-12-01 12:31:43 +00:00
Motonobu Takahashi
c5f4a4b9ad added $(LDFLAGS) to link smbmount/smbmnt/smbumount to make Red Hat Linux
happy
(This used to be commit 7dfde592aa47f735c08718844db083500b020a60)
2001-12-01 05:28:14 +00:00
Andrew Tridgell
e573bfa386 not used any more
(This used to be commit 97627e424a1de3df0a6f7a9bfaaf3ece4dd2036d)
2001-12-01 03:26:57 +00:00
Andrew Tridgell
3756055ea1 we need to look for liblber before libldap
(This used to be commit 93a652b705e99df6cd493eacb1a8a61a3a2b82f7)
2001-11-30 22:45:52 +00:00
Jeremy Allison
a9750b2006 XFS quota patch for Linux.
Jeremy.
(This used to be commit ce099faf6ce07e14bd9610960bd09f56c5bee864)
2001-11-30 21:50:02 +00:00
Gerald Carter
9cc8cb5134 merge from APPLIANCE_HEAD
(This used to be commit f8b18b25944135c196c8134100f601e84c583382)
2001-11-30 20:33:35 +00:00
Jeremy Allison
605248abd9 Check error returns.
Jeremy.
(This used to be commit fc8638e89effb0ebf2e40cee8cd0d7467e49e2a8)
2001-11-30 03:45:21 +00:00
Jeremy Allison
445ab75ec3 Gerald's fix.
Jeremy
(This used to be commit b0c1fcfc8bae83788c7595931321833bf177ec4b)
2001-11-30 03:38:59 +00:00
Jeremy Allison
9e88a7ebe9 After conversations with Andrew, improved the robustness of the
sharemode db in the following way.

Originally, on startup and shutdown, smbd would scan the share mode
db to ensure it was correct. This lead to scalability issues as
scans lock the db for quite a long time. Andrew had the brainstorm
that we only care about the record we're about to read.

This new code (small change really, but quite significant) causes
get_share_modes() to do a process_exists() call against each pid
in each record, and to delete any that don't and re-write the
entry if any dead records were detected.

This allowed me to remove the startup/shutdown scans of the
db (they can be added into smbstatus if anyone really cares to
have them back). This will please the vfs author who was worried
about the time taken on open() calls, and will lead to much
greater robustness and scalability in the share mode db.

We need much testing of this, and also netbench tests to
ensure the extra process_exists() calls don't hurt performance
(they shouldn't it's a very simple system call).

Jeremy.
(This used to be commit 4098d442030e66601450baeb09ae06b39a1ab571)
2001-11-30 01:59:03 +00:00
Tim Potter
6d9adfe73c Renamed sid field in SEC_ACE to trustee to be more in line with MS's
definitions.
(This used to be commit 9712d3f15a47155f558d0034ef71fd06afb11301)
2001-11-30 01:04:15 +00:00
Tim Potter
0d5f30fe5f Missing return in free_privilege()
(This used to be commit b35d90cd89849f0a01e8c79f0962ec9388673ad1)
2001-11-30 00:46:40 +00:00
Jeremy Allison
ed7feb560b Ensured the %G substitution exactly matches what the man page states.
Jeremy.
(This used to be commit 518084a70d0b20347411535f1dcf7453981499cf)
2001-11-30 00:28:39 +00:00
Tim Potter
faac64b33f Comment deconfusification.
(This used to be commit b5fac3a56d917b13fedc0ace3ea56ae82f51ccdd)
2001-11-30 00:24:43 +00:00
Jean-François Micouleau
fac01bda8b Changed again how the privilege list is handled in the group mapping code.
This time it's a PRIVILEGE_SET struct instead of a simple uint32 array. It
makes much more sense. Also added a uint32 systemaccount to the GROUP_MAP
struct as some privilege showing in USRMGR.EXE are not real privs but a
bitmask flag. I guess it's an heritage from NT 3.0 ! I could setup an NT
3.1 box to verify, but I'm too lazy (yes I still have my CDs).

Added 3 more LSA calls: SetSystemAccount, AddPrivileges and
RemovePrivileges, we can manage all this privilege from UserManager.

Time to change the NT_USER_TOKEN struct and add checks in all the rpc
functions. Fun, fun, fun.

        J.F.
(This used to be commit 3f0a9ef2b8c626cfa2878394bb7b642342342bf3)
2001-11-29 16:05:05 +00:00
Andrew Tridgell
3a921f37b7 ads->realm must not be NULL
perhaps we should just fail ads_init() in this case?
(This used to be commit 2a4ce3de6ae8fb833370d1f9d6e5e7193fafa979)
2001-11-29 08:22:45 +00:00
Andrew Tridgell
090acb27c3 define LDAP_PORT when not available
(This used to be commit 5a5f140f84f4dd377d141e352f4cb7f9bea4fe64)
2001-11-29 06:38:54 +00:00
Andrew Tridgell
7879a1a811 fixed typo
(This used to be commit 624cb28271289aa697f23c32f7b5159f6fcbb51d)
2001-11-29 06:26:05 +00:00
Andrew Bartlett
210711c6a0 Fix up the ./configure tests for kerberos. This ensures a more consistant
behaviour no matter if kerberos was found automatically, found in the
/usr/kerberos path or was specified.
(This used to be commit 4e212f728c429b986bb3e2230fbc9cd4bcf6dd40)
2001-11-29 06:23:43 +00:00
Andrew Bartlett
fe64484824 Make better use of the ads_init() function to get the kerberos relam etc.
This allows us to use automagically obtained values in future, and the value
from krb5.conf now.

Also fix mem leaks etc.

Andrew Bartlett
(This used to be commit 8f9ce717819235d98a1463f20ac659cb4b4ebbd2)
2001-11-29 06:21:56 +00:00
Tim Potter
ff27a326f1 I think the lookup_pdc_name() should be called lookup_dc_name() and the
name_status_find() call here should look up a #1c name instead of #1d.
This fixes some bugs currently with BDC authentication in winbindd and in
smbd as you can't query the #1d name with the ip address of a BDC.

Who is Uncle Tom Cobbley anyway?
(This used to be commit 4215048f7b20a8f9e5877bdbb2f54841b2f7fa64)
2001-11-29 05:50:32 +00:00
Andrew Tridgell
5bfc7214af fixed toupper_w() and friends on big-endian
this fixes the core dumps on sparc
(This used to be commit e6004062a508b1fe6dd7f93d8a933da9916598f8)
2001-11-29 05:20:23 +00:00
Andrew Tridgell
fbcf770865 2nd attempt at fixing lame char tables on big endian machines
(This used to be commit 80841f5763b3ab03a82ab0a18a9126d89ffed2d5)
2001-11-29 05:03:15 +00:00
Andrew Tridgell
8bd89c72a3 fixed lame char tables on big endian machines
(This used to be commit 568425709d11b2eed86643d18973542d0504d5ca)
2001-11-29 04:58:29 +00:00
Andrew Tridgell
f6b962fba3 fixed some krb5 ifdefs
(This used to be commit 23ef22f11700bbaa5778a9678a990a2b041fcefe)
2001-11-28 23:54:07 +00:00
Gerald Carter
bd8e916cb5 merge from APPLIANCE_HEAD
(This used to be commit c60aa6c06f376684b6d6d9a2c14305ca9f4657ef)
2001-11-28 21:51:11 +00:00
Jeremy Allison
7d2d605f0d space -> tab.
Jeremy.
(This used to be commit c7dd0364f2b084d9a372ac885fd788bbb5113125)
2001-11-28 19:51:25 +00:00
Herb Lewis
3a193f1597 add .po32 files to ignore list
(This used to be commit 5f625f2877fc5132be3030fc6ea9df4d59ecff05)
2001-11-28 19:49:43 +00:00
Jeremy Allison
59a8827f5d Spelling pedents strike again :-).
Jeremy.
(This used to be commit 0187d4ba16c794faa372bf1a50261b8f47482064)
2001-11-28 18:10:13 +00:00
Andrew Bartlett
299edaa854 Allow kerberos to work on RedHat and other non /usr systems again
the configure test uses the CPPFLAGS when checking that krb5.h exists
(This used to be commit 1e4fc749ad17114ac715c8ab833ef1d50dd318da)
2001-11-28 06:52:33 +00:00
Andrew Tridgell
b1ade34705 fixed a core dump in server level security
(This used to be commit e790bb21d3895bef97522b68c6f00812e6c286f2)
2001-11-28 05:49:36 +00:00
Jeremy Allison
a17867af97 Ensure the CAN_WRITE is checked and prevents O_CREAT and O_TRUNC from
being set. Also prevent an open on a file on a readonly share from
setting delete on close.
Jeremy.
(This used to be commit 1f3dcd99bdd36cd3ff492394e80c3e2037a9aa48)
2001-11-28 05:03:37 +00:00
Jeremy Allison
1a50b36d97 Re-added "Share modes" meaning don't allow deny mode conflict. Due to
user demand (don't talk to me about removing parameters.... :-).
Jeremy.
(This used to be commit b69127391b322d81cc648f73a601ed61e79c8a44)
2001-11-28 04:47:46 +00:00
Andrew Tridgell
241b1b9aa6 turn off the insure xterm hack for now
(This used to be commit 8698f7ef3ee9b83370e895607297245b6df74934)
2001-11-28 04:44:23 +00:00
Tim Potter
d0ea72d0b7 Added a 'keys' command to tdbtool which prints out all keys in the tdb.
(This used to be commit 1d2305c233ef40ccb016688f918e34392d1a691e)
2001-11-28 03:58:33 +00:00