summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-03-24Ignore port when pulling IP addr from struct sockaddr_storage.Gerald (Jerry) Carter1-34/+10
Linux man page states that getaddinfo() will leave the port uninitialized when passing in NULL for the service name. So we can't really trust that anymore. I doubt non-default KDC ports are an issues so just drop the port from the generated krb5.conf. AIX exhibits this bug the most. (This used to be commit 36f8bafbd3dee66a869aa26cfc2eb4aa62019325)
2008-03-23Fix Coverity ID 472Volker Lendecke1-6/+4
Simo, S4 also has this code. You might want to cherry-pick. Volker (This used to be commit 94c29f55937e50dcf49124d28ad4e82c7fb4133e)
2008-03-23Fix Coverity ID 436Volker Lendecke1-0/+5
(This used to be commit 9e0ee1ad4fe0f0e7dec0b6824ef234147d845b8d)
2008-03-21registry: fix registry_init_smbconf() to close the registry at the end.Michael Adam1-2/+0
Michael (This used to be commit f4d87fdbf266a36fbb50dae863ee0784165c2fe1)
2008-03-21libsmbconf: add internal open/close handling to registry backend.Michael Adam1-4/+38
This internally keeps track of opened registry in the private data struct. The first call that really accesses data, opens the registry and it is kept open until the destructor is called. This behaviour might be changed in the future. Michael (This used to be commit 03e72e13076e3215eb8ae51cfb4e7cd3d3683d3e)
2008-03-21libsmbconf: add a comment.Michael Adam1-0/+3
Michael (This used to be commit 513ae78ef78d3ddcb155f9c38b9a0c82809e0998)
2008-03-21libsmbconf: add private_data section to smbconf_ctx.Michael Adam2-8/+20
This private data should be used by backends. The token for the registry backend is moved from the context to the private data section, since this is registry specific. Michael (This used to be commit a02163356bdd0c17a25a45e9904f8bd1e1c4bee4)
2008-03-21libsmbconf: add a "path" variable to the conf context.Michael Adam5-15/+27
This is passed to the module init routines. In case of the registry, this is the path of the basekey in registry, that is to be used, defaulting to KEY_SMBCONF (HKLM\software\samba\smbconf), when NULL is given. This is the only case currently used. In order to support other keys, registry initialization for smbconf has to be changed to support different keys. Michael (This used to be commit 96434d9dc7a66773e313cc128af57493dee245a1)
2008-03-21libsmbconf: add structuring comments to the prototypes in the public header.Michael Adam1-0/+8
Michael (This used to be commit 4f816df27670c3b6aabea9f26ef2d26f3e882e78)
2008-03-21libsmbconf: adapt a comment to new circumstancesMichael Adam1-3/+1
Michael (This used to be commit 83b9453c88bfdf615cc2b547645b0a71a870f473)
2008-03-21libsmbconf: group together functions in smbconf.c more appropriatelyMichael Adam1-21/+29
Michael (This used to be commit e8ed8ad077f69ae7237f49b150625d20eb509586)
2008-03-21libsmbconf: add a comment.Michael Adam1-1/+5
Michael (This used to be commit 8974b283683799bc51223d27b7e6aecac741fbc2)
2008-03-21libsmbconf: move registry implementation to a module of its own.Michael Adam3-721/+754
Michael (This used to be commit 431b10bfe0dba0a49e50bebfb3f8ad1a00955837)
2008-03-21Fix Coverity ID 473Volker Lendecke1-1/+1
Simo, S4 also has this bug, you might want to merge the fix. (This used to be commit b82cf75c825298444781697072d83a163c43df4b)
2008-03-21Fix Coverity ID 537Volker Lendecke1-3/+3
(This used to be commit b19ea3635ccc1f2c7cd6c7f2d179264fbdce13a7)
2008-03-21Fix Coverity ID 538Volker Lendecke1-3/+3
(This used to be commit d69b8b19aeac2266fb5e5ee280ffffe48a690099)
2008-03-21libsmbconf: reformaat - fix some whispacing/tabsMichael Adam1-7/+7
Michael (This used to be commit 1a5e5bf38f409b10c8b1da6227722c7d3976b175)
2008-03-21libsmbconf: add backend specific init function.Michael Adam4-4/+13
Hide generic init function taking smbconf_ops argument from public api. Michael (This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)
2008-03-21libsmbconf: add shutdown handler to smbconf_ops.Michael Adam2-1/+8
Michael (This used to be commit acbd1f40e0cb4cb5b2ba826c4825edda7ee4937b)
2008-03-21libsmbconf: fix commentsMichael Adam1-2/+1
Michael (This used to be commit 24f32d9bd9aa837d777ea4187bebf3146a67ce59)
2008-03-21libsmbconf: rename smbconf_close() to smbconf_shutdown().Michael Adam3-4/+4
Michael (This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)
2008-03-21libsmbconf: rename smbconf_open() to smbconf_init().Michael Adam3-4/+4
That's more appropriate. Michael (This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)
2008-03-21libsmbconf: add open and close operations to the smbconf_ops.Michael Adam2-1/+15
Note: currently, reg_init_smbconf opens the registry, but does not close it. This has to be changed. so that it is closed. And then libsmbconf will need these open/close functions Michael (This used to be commit 77dbdf82efa60c8a7c00e489c198775b2f66e56c)
2008-03-21libsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.Michael Adam2-14/+64
Michael (This used to be commit a857f643d1558c0fdab4b647695d75223b730b96)
2008-03-21libsmbconf: move smbconf_reg_initialize() down to the smbconf operations.Michael Adam1-20/+20
Michael (This used to be commit f2d605006cd1187f70a044c3356d436e91093d5f)
2008-03-21libsmbconf: add existence check for service to smbconf_delete_share().Michael Adam1-0/+4
Michael (This used to be commit d44c2ef0b7d7bddb4115b596872748132ebd6ddc)
2008-03-21libsmbconf: add existence check for service to smbconf_get_share().Michael Adam1-0/+4
Michael (This used to be commit 26208d3e96a1e257628366709a1d71ac36f0788b)
2008-03-21libsmbconf: add check for NULL servicename to smbconf_share_exists().Michael Adam1-0/+3
Michael (This used to be commit 5dac66c82af8c87df723092a9309304846684418)
2008-03-21libsmbconf: fix a commentMichael Adam1-1/+1
(This used to be commit 103a37ac8e85e9a7b8c2f4eb33e6f1cdbe01d31c)
2008-03-21libsmbconf: refactor out registry implementation of smbconf operations.Michael Adam1-229/+326
This leaves most of the api functions mere wrappers except for some common initial checks. Michael (This used to be commit 9448a7a298e9ed035aa6b86df18f2d41081731cc)
2008-03-21libsmbconf: refactor autocreation of [global] into a helper function.Michael Adam1-21/+18
Michael (This used to be commit aeaf66c064de58c6f19d5a9d226843dedb552011)
2008-03-21libsmbconf: put the smbconf context struct into a private header.Michael Adam3-3/+29
Michael (This used to be commit a99ee5e536eee1563c90e5d7f251bfe9f5d1ffbb)
2008-03-21libsmbconf: change the API to always take the smbconf_ctx parameter first.Michael Adam2-21/+25
..for consistency. Exception: the open/init function, where the smbconf_ctx is created from the given talloc context. Michael (This used to be commit 304dba6cb2184437f3edad065a530d03fb704036)
2008-03-21libsmbconf: fix indentation.Michael Adam1-3/+3
Michael (This used to be commit 7460697ea42764f5f658a4f7f70872a56aeb160d)
2008-03-21libsmbconf: change smbconf_get_seqnum() to smbconf_changed().Michael Adam2-10/+37
The former seqnum is hidden inside a struct smbconf_csn. And the get_seqnum is united with a changed function that stores the seqnum inside the given csn. Michael (This used to be commit 5b6b90900a1a3eab24cb5612d78f9678a363cf73)
2008-03-21libsmbconf: fix a commentMichael Adam1-2/+1
Michael (This used to be commit e6b60f6cad32ce8bb78abb070889dde3eca2d268)
2008-03-19libreplace: replace.c does not need system/network.h anymore.Michael Adam1-1/+0
Michael (cherry picked from commit 2d3c2f34f33338ff422047dae9cc262522689328) (This used to be commit 03a980d8f67ee1516c357807c23a405f07a006b3)
2008-03-19libreplace: move rep_socketpair() to its own module.Michael Adam6-24/+55
Prototype is now in system/network.h, implementation in socketpair.c, and check in socketpair.m4. Now the last networking function has vanished from replace.c. Michael (cherry picked from commit 94ac8a25be15b55f66eff96fdddc2fdc71a43b1e) (This used to be commit 6c53753246b8108fe1277b34958e122bd800c4e7)
2008-03-18libreplace: remove duplicate entry of inet_ntoa from README.Michael Adam1-1/+0
Michael (cherry picked from commit 98ee8c84300757d778733a458c6ca3e6022b40ea) (This used to be commit a4f22d6e2b3fc198327deabf4a724cd476e4144c)
2008-03-18libreplace: remove trailing white spaces.Michael Adam2-2/+2
Michael (cherry picked from commit 1f9ca7eed965904f67cf78fbac007432b8a057fd) (This used to be commit a1d24f110b3edff636174e017eb56ba5b10df590)
2008-03-18libreplace: replace inet_ntoa() when it is missingMichael Adam6-34/+61
...not only replace it when it is broken. This moves the defintion of rep_inet_ntoa from replace.c to inet_ntoa.c and adds configure checks for existence of inet_ntoa(). Checks are moved to an include file of its own. NOTE: The original rep_inet_ntoa in replace.c was wrapped into a "#ifndef WITH_PTHREADS" but the prototype in replace.h and the define in system/network.h were not. I removed that ifndef since the inet_ntoa() function is usually not thread safe anyways, since it returns a pointer to a static buffer. So whoever calls inet_ntoa() should be aware that it is not thread safe anyways. Michael (cherry picked from commit 974c0c45ad42644348e0b55454715b12158f1028) (This used to be commit edcf2712bcdedabbfdd9ee8b9a18f46126930636)
2008-03-18libreplace: put inet_aton.c under LGPL instead of GPL.Michael Adam1-9/+13
Michael (cherry picked from commit cca5d6626fe395f08fd4c8b2344e4e43646cb987) (This used to be commit f69e51f56f111d9bd5db69e191f45567aacf8c3d)
2008-03-18libreplace: remove unused SOCKET_LIBS and NSL_LIBSStefan Metzmacher1-3/+0
metze (cherry picked from commit 62bb177a6e4a3e1f949b78c7cd7583f2e1271739) (This used to be commit f27d5e0cf80c49d81091a385cbfd0801b5483825)
2008-03-18libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIBStefan Metzmacher1-0/+3
metze (cherry picked from commit 79037c31334e271a718fcac234148038814b591e) (This used to be commit b141fce01dd40b25cce52852cd93f0f907c3b008)
2008-03-18libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checksStefan Metzmacher2-3/+3
...instead of using SOCKET_LIBS and NSL_LIBS. metze (cherry picked from commit cef2e8d748756f61c248ad6660e85dd1ac36308a) (This used to be commit 7854ed24a57162fa7569d8f36633f3c156067b0b)
2008-03-18libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBSStefan Metzmacher1-7/+9
But keep the old ones untill the callers are fixed. metze (cherry picked from commit e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9) (This used to be commit 2dee62ed12910a4d22381677bcf884dca0d999ea)
2008-03-18Fix bug 5334Volker Lendecke1-0/+30
I did not test with a zero length file :-) (This used to be commit 7d7a73944c2dcf078f7bc8de65d575f32f9aa851)
2008-03-17Coverity fixesMarc VanHeyningen1-1/+1
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-17libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .Michael Adam3-200/+186
Michael (This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)
2008-03-17Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.Michael Adam2-0/+1048
The libnet_conf code to access the registry based configuration has become more of a library used in several places in samba (e.g. loadparm) than an abstraction of "net conf". So I move it to a location lib/smbconf/. In the same breath, the api is fixed (not generated by make proto anymore). Michael (This used to be commit 5315ef41f403b96715dd68b512e9e74662e2910a)