Rework samdb handling for 'netlogon' packets.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jun 2008 02:22:50 +0000 (12:22 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jun 2008 02:22:50 +0000 (12:22 +1000)
commitd10c9b71ea7f2670c4ea5ec569bcb7f49ec41362
treea50214fc554bcefa53791f853372fa58622450a6
parent963bcfc777679ba122189ea6cf7f94b8d46cdce7
Rework samdb handling for 'netlogon' packets.

Don't reopen the samdb for every netlogon packet, and use the
system_session(), as we must access data not available to anonymous.
Perhaps we should consider a 'authenticated but not system' token, if
we want more control on this.

Andrew Bartlett
source/cldap_server/cldap_server.c
source/nbt_server/dgram/netlogon.c
source/nbt_server/nbt_server.c