summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* adding group member code, made a start. found that the group members'Luke Leighton1998-12-026-88/+640
| | | | | rid is needed not the name (see DOMAIN_GRP_MEMBER) decided to go home. (This used to be commit 9337049dfc98becfa74522d418dae64a97c7a304)
* ok. unix-nt mapping code issuesLuke Leighton1998-12-013-6/+6
| | | | | | | | | | | | need to check, when looking up group members, that a group member is a unix user [being mapped to an nt user] FIRST then if that fails check that a group member is a unix group [being mapped to an nt group]. why? because you can have group names in a unix /etc/group file with the same name as users. this _might_ be a problem... (This used to be commit 585d47644d3d709ccdfd5135c5f77166b609eb3b)
* check server role before doing nt user to unix user mappingLuke Leighton1998-12-011-12/+15
| | | | (This used to be commit 9d4e810e7dd8d6d80b47204636f9a37774f95455)
* query_aliasmem code. it works (hurrah).Luke Leighton1998-12-015-62/+68
| | | | (This used to be commit f7f2516df46dde1671235f788f7689c93d9395ae)
* fixing smbpasswd to link to smbd to obtain domain sidLuke Leighton1998-12-013-6/+9
| | | | (This used to be commit bfb75e58ced1082d3bb7d6b3f3367d50a0ca26ea)
* rpc_samr.h parse_samr.c srv_samr.c :Luke Leighton1998-12-0110-74/+313
| | | | | | | | | | | samr_query_aliasmembers (cool!) util_pwdb.c sids.c nmbd.c server.c smbpasswd.c swat.c : pwdb_initialise(BOOL is_server) now creates / reads DOMAIN_NAME.SID if is_server is True, and does LsaQueryInfoPolicy(levels 3 and 5) to obtain member and pdc sids. (This used to be commit 3e1eb4f26b67e484b05e1dde94fd4e4dae982631)
* andrej spotted that entries _not_ in domain map user were being refused.Luke Leighton1998-12-011-10/+6
| | | | | | modified map_nt_and_unix_names() to never refuse a mapping (returns void now not BOOL). (This used to be commit faffcb3c8955dcea3987e2978dc34b4dba580167)
* hm. removed the "if failed to map nt name to unix name, fail tcon call"Luke Leighton1998-12-011-8/+2
| | | | | | | restriction and "domain user map" seems to work. amazing. (This used to be commit 2c0d91e64a6b330b209ca62c3306ec1a53fda873)
* fix to domain_namemap (domain, ntname wrong way round oops)Luke Leighton1998-12-014-8/+10
| | | | | stupid compile errors with file_rename() call just created. (This used to be commit f5cedb8c9618b83b63b5e2db867d238eebc7e13c)
* adding some samr parsing calls (group / alias adding / deleting)Luke Leighton1998-12-017-501/+939
| | | | | added code that moves MACHINE.SID to DOMAIN_NAME.SID if it exists. (This used to be commit 51c1c31768a92d9c57ee6c09b78419bcbc544f03)
* attempting to fix "domain user map" up, but it's a bit complicated.Luke Leighton1998-11-306-96/+192
| | | | | | | | | | | | | | | | | | i may simply go for a response in the NetSamLogon returning the unix username, forcing the NT user to appear to be a unix user, however even that is fraught with implications. might just have to go the whole hog and do this tuple thing, "unix_name + nt_name" always associated together... issue with api_net_sam_logon, getsam21pwent() being called twice, the second time overwriting static buffer data (argh) so had to make a copy. noticed a nested "become_root()"/"unbecome_root()" which will have to be tracked down... (This used to be commit 474f94f419a531e33b475249da7efb99ac22f454)
* passdb.c now calls getpwnam() which returns results in a static buffer.Luke Leighton1998-11-301-7/+21
| | | | | | a call _outside_ of this was _also_ calling getpwnam. the calls to getsmbpwnam() were therefore overwriting the static buffer. (This used to be commit c5ba5fa6feab2884a23b8bcb5dcb349ee1a7c139)
* pwdb_initialise() in the wrong place: must load smb.conf first. thanks phil.Luke Leighton1998-11-301-6/+6
| | | | (This used to be commit 4b5bd4e18cee72aeb76909cf85b1f932393fcfc8)
* missed out endit()s, ta andrej.Luke Leighton1998-11-301-0/+6
| | | | (This used to be commit 37a6acf43ca308647bee66f1e68a43d641b77f6f)
* Earlier fix for smbmount timing window was the wrong patch.Michael Warfield1998-11-301-9/+10
| | | | | | My bad... Earlier one was the patch from the CIFS conference that didn't work, this fixes... (This used to be commit 12739f0456e9f707a361bce2fa01b0baaae182d9)
* moving rpc/rpc.h to after netinet.hLuke Leighton1998-11-301-5/+5
| | | | (This used to be commit 3257b72c6e2722a6de6b40b4c16e934c02a7c508)
* another attempt at a fix on connect_serverlist()...Luke Leighton1998-11-301-8/+8
| | | | (This used to be commit 603c5f6df8c525f30d00da912d408b98378ea538)
* builtin alias password APILuke Leighton1998-11-302-0/+727
| | | | (This used to be commit 58c0f0a77c396a6021596c84d4a30b1c9a4b1419)
* andrej spotted problem with connect_serverlist (starts off assumingLuke Leighton1998-11-301-1/+1
| | | | | a connection succeeds...). (This used to be commit c0efc35b27d50c40bc04bfd9fb1d61ea5d32bde5)
* - adding builtin[alias]db.Luke Leighton1998-11-3014-69/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | - lib/sids.c: generate_sam_sid() modified to take a domain name: it now generates "DOMAIN_NAME.SID". reasons: 1) if you run multiple samba servers on the same machine under different netbios names as members of a domain, they won't all use the same SID, which is a _big_ mistake but it would happen _by default_. 2) we have (had) a problem with sid_to_string() and string_to_sid() which cause SIDs to be incorrectly read. one of the major reasons for *NOT* making this change was so as not to disrupt existing users. but as they will be anyway by this bug, we might as well go ahead. - passdb/smbpass.c: wanted to change the meaning of the name in the smbpasswd file to an "nt" name not a "unix" name. this is probably not a good idea: reverted this. - output formatting / bug-fixing in rpcclient query_useraliases code. (This used to be commit e4930f5f48f8246ceec8add8bf769954a963190c)
* updated smb.conf - have not done a yodl2xxx.Luke Leighton1998-11-301-19/+152
| | | | (This used to be commit b95b2b5d44ad9f998a6f422132b854593de20f04)
* cvs getting it wrong. again.Luke Leighton1998-11-291-8/+10
| | | | (This used to be commit 776abe3fe52748b9d2939ff77f8a39155894b952)
* enabling optimisation switches on some compiler warningsLuke Leighton1998-11-291-1/+1
| | | | (This used to be commit e717b898405fdcd0bb7787394961589aa62cacc3)
* "retired" two modules to preserve their cvs history.Luke Leighton1998-11-297-1158/+2899
| | | | | added their replacements, added sam password database API modules (This used to be commit b1d1c1337c69c6f6bf25ab932a1a6a757e3ea2ae)
* weekend work. user / group database API.Luke Leighton1998-11-2940-1862/+1415
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API... (This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
* removed include of net/route.h because it prevents compilation underAndrew Tridgell1998-11-291-4/+6
| | | | | | | | | | SCO 3.2 (including it also requires lots of streams stuff, making it a total mess). If this causes problems on some other platform then please add a comment stating what platform and why the include is needed so we can work out how to test for it properly. (This used to be commit 21d779bf7def71d5d9c899eabbb6a110860bd8e2)
* don't allow ".." in service name when doing "default service"Andrew Tridgell1998-11-291-1/+3
| | | | | processing. (This used to be commit 702263bba555a1d7c7999d40e5789b7e920dbce4)
* Fixed typo. "Browsable is an acronym for browseable.John Terpstra1998-11-281-1/+1
| | | | (This used to be commit 8de177b05a1043d4416e8f673e499cd403bb3522)
* Now uninstalls man pages from correct source location.Tim Potter1998-11-271-1/+1
| | | | | Fix by Andrej Borsenkow <borsenkow.msk@sni.de> (This used to be commit 5c0e31982e8eb1c93bc77925e59be65798f2dbad)
* make the help links appear in a separate window, so you can read theAndrew Tridgell1998-11-271-1/+1
| | | | | docs and do configuration at the same time. (This used to be commit 386a3bfd337f4b248f6c88b9c98b9d6471cc9b25)
* - removed smb.conf.5.html as it now comes as part of htmldocsAndrew Tridgell1998-11-272-4484/+36
| | | | | | - changed swat welcome screen to have links to all Samba html docs instead of just singing the praises of swat :) (This used to be commit c830d893f1f7eb176dc1fb7de0a4efc748fd1423)
* better layout of password options.Andrew Tridgell1998-11-271-19/+23
| | | | (This used to be commit d3fa0dd7a80a8d20e2d9db0b5ca24988059280fb)
* install all html docs in yodl help directoryAndrew Tridgell1998-11-271-0/+7
| | | | (This used to be commit ed4d1062b2655d59f6904344e708aa53af235ad5)
* re-ran yodlAndrew Tridgell1998-11-2718-66/+63
| | | | (This used to be commit 98b72722c8c221047d890f9b7b1d51f16fdac705)
* got rid of a dangerous message command exampleAndrew Tridgell1998-11-271-9/+0
| | | | (This used to be commit bfca6e6a9d06742ea4ef36f1faac57eb0419b2d6)
* Replaced ZERO_STRUCT() with ZERO_STRUCTP() in cli_connect_serverlist().Tim Potter1998-11-261-1/+1
| | | | | Fix by Matt Chapman <m.chapman@student.unsw.edu.au> (This used to be commit c44b418d6fd16a257af21f6b5b29b1cdf26015b7)
* updated SWAT README to remove cgi-bin instructionsAndrew Tridgell1998-11-261-54/+5
| | | | (This used to be commit baa43fb17b04b7945456514e01682e5dca5dfe99)
* we have a problem: resolution of "Primary Group RID" which we assumedLuke Leighton1998-11-263-2/+16
| | | | | | | | | | would only be a domain group rid. it can also be a local group rid, which causes us problems in attempting to turn a unix gid into the correct rid (domain group or local group). sooo.... the fix is _in_ there, we just can't use it because it causes link / knock-on problems in nmbd. (This used to be commit e4ee6538709c33000774eb1676608f2dd67d5a30)
* yeehaah got users to be included in S-1-5-xxx-yyy-zzz's local groups.Luke Leighton1998-11-255-51/+70
| | | | | | | now need search capability on S-1-5-20, which will need argh, a "group database API" on S-1-5-20, and the ability to add BUILTIN\Admins etc to "local group map" argh. (This used to be commit a24f6eb00ba7486479cbcf7fadf5456521c56179)
* fixing group database issuesLuke Leighton1998-11-258-67/+94
| | | | (This used to be commit 591c63e3e1e3201ddcd7582585b652fb848d80ca)
* Makefile.in: Added maintainer mode fixes.Jeremy Allison1998-11-2527-824/+2010
| | | | | | | | | | | | | | | | | | | | | | | | | aclocal.m4: Added AC_LIBTESTFUNC. configure.in: Fixed -lsecurity -lsec problems. client.c: dos_ fixes. groupdb/aliasunix.c: Dead code removal. include/includes.h: Added default PRINTCAP_NAME. lib/genrand.c: dos_ fixes. lib/replace.c: Added strtoul. lib/system.c: dos_ fixes. lib/util.c: dos_ fixes. lib/util_sid.c: Signed/unsigned fixes. lib/util_str.c: removed bad const. locking/locking_slow.c: dos_ fixes. printing/printing.c: dos_ fixes. rpc_server/srv_samr.c: Dead code removal. rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN ! smbd/dir.c: dos_ fixes. smbd/open.c: dos_ fixes. smbd/oplock.c: dos_ fixes. smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes. Jeremy. (This used to be commit 6acb4b68f68d516e2ac3c47e500f5600d653435e)
* LsaLookupNames client call (first used as lookupnames command in rpcclient).Luke Leighton1998-11-2513-131/+380
| | | | (This used to be commit 68342a29a892e515cf2b22d759476d61944bcd59)
* added file from 2.0 branchHerb Lewis1998-11-251-0/+17
| | | | (This used to be commit 8ec972ba6c274076b46081502acef256a70d1a38)
* fixing domain join and domain login problemsLuke Leighton1998-11-255-11/+23
| | | | (This used to be commit 90a24664318da97a6e8cfe4622a8573c0e3cbe5e)
* clearer debug commentsLuke Leighton1998-11-241-2/+2
| | | | (This used to be commit 06b9100c1c1590bad392a8d9bdd79a6c554a3cac)
* oops, forgot to rename smbfilegrp to smbunixgrp.Luke Leighton1998-11-241-11/+11
| | | | (This used to be commit 6de2b03d1c6714d63c6dbe7a417fb442e95ee0d9)
* updated from yodlLuke Leighton1998-11-242-27/+247
| | | | (This used to be commit f057b2e7a2e6d6d1a2e9e24f4bb20d38bf6af9a2)
* added "domain group map" and "local group map" explanations.Luke Leighton1998-11-241-9/+136
| | | | (This used to be commit 6c4cf9ea4ac9bc441236d4e823d5fa1e7a487c26)
* sorting out difference between aliases and groups in the cases whereLuke Leighton1998-11-243-21/+55
| | | | | | | | | | | | | | | | unix groups are not explicitly mapped. i.e as a PDC or BDC you can have domain groups, as a member of a domain you cannot. as a member of a domain, unmapped unix groups are assumed to be aliases, and as a PDC or BDC, unmapped unix groups are assumed to be unix groups. there is _one_ other check needed with aliases to be added: unmapped unix groups that have the same name as an NT group on the PDC (for which i will need to write an LsaLookupNames call) should be assumed to be domain groups on the PDC. (This used to be commit 53b49b44e13a4ca9818ebc947372b1374831b568)
* jean-francois pointed out problem with "lp_domain_role()" code, youLuke Leighton1998-11-241-2/+2
| | | | | could never be a PDC. (This used to be commit 2bcc540af80c37b8032a23d6d0045160a7c40e32)