Nicolas Williams 
							
						 
					 
					
						
						
							
						
						ed4b1be5bb 
					 
					
						
						
							
							kadm5: Add online kadm5_iter_principals()  
						
						... 
						
						
						
						kadm5_get_principals() is not online.  If you have... many principals,
it will be slow.  At least it's no longer quadratic, but it, it's still
slow.  Time to add a version that uses a callback:
    kadm5_ret_t
    kadm5_iter_principals(void *server_handle,
                          const char *expression,
                          int (*cb)(void *, const char *),
                          void *cbdata)
The callback gets called with the given callback data and one principal
name (unparsed).
Note that the callback MUST NOT re-enter the kadm5 library with the
*same* kadm handle.  For example, the kadmin protocol doesn't really
multiplex requests well, though it could pipeline them, but it can't
pipeline when LIST is running, not with the protocol implemented here,
so a separate connection is needed, and that requires a separate kadm
handle.  We add kadm5_dup_context() to deal with this. 
						
						
					 
					
						2022-03-20 18:27:03 -05:00 
						 
				 
			
				
					
						
							
							
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						d658aa9b11 
					 
					
						
						
							
							kadm5: Fix error-path leak  
						
						
						
						
					 
					
						2022-01-17 10:48:07 -06:00 
						 
				 
			
				
					
						
							
							
								Viktor Dukhovni 
							
						 
					 
					
						
						
							
						
						492910ec1e 
					 
					
						
						
							
							Don't lose error status in kadm5_s_init_with_context  
						
						... 
						
						
						
						If either krb5_parse_name() or _kadm5_acl_init() fail
we could return success and a NULL kadm5_handle. 
						
						
					 
					
						2018-08-05 14:37:04 -04:00 
						 
				 
			
				
					
						
							
							
								Viktor Dukhovni 
							
						 
					 
					
						
						
							
						
						f0a772e3e6 
					 
					
						
						
							
							More robust kadm5 server handle init and cleanup  
						
						
						
						
					 
					
						2016-12-03 01:36:53 -05:00 
						 
				 
			
				
					
						
							
							
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						f38089257b 
					 
					
						
						
							
							Misc fixes (coverity)  
						
						
						
						
					 
					
						2016-11-20 17:43:51 -06:00 
						 
				 
			
				
					
						
							
							
								Love Hornquist Astrand 
							
						 
					 
					
						
						
							
						
						6e5bfce2de 
					 
					
						
						
							
							use socket_set_nonblocking  
						
						
						
						
					 
					
						2013-04-24 16:31:32 -07:00 
						 
				 
			
				
					
						
							
							
								Viktor Dukhovni 
							
						 
					 
					
						
						
							
						
						72f0690694 
					 
					
						
						
							
							Temporary fix for high-priority iprop issues  
						
						... 
						
						
						
						Signed-off-by: Love Hornquist Astrand <lha@h5l.org > 
						
						
					 
					
						2013-04-24 16:29:34 -07:00 
						 
				 
			
				
					
						
							
							
								Roland C. Dowdeswell 
							
						 
					 
					
						
						
							
						
						1017d42b18 
					 
					
						
						
							
							We honour settings to specify the location of the KDB and stash file.  
						
						
						
						
					 
					
						2012-02-24 18:56:25 +00:00 
						 
				 
			
				
					
						
							
							
								Asanka Herath 
							
						 
					 
					
						
						
							
						
						d84119813e 
					 
					
						
						
							
							No AF_UNIX on Windows and no SIGPIPE and SIGXCPU  
						
						
						
						
					 
					
						2009-11-24 10:12:44 -08:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						6937d41a02 
					 
					
						
						
							
							remove trailing whitespace  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2008-09-13 09:21:03 +00:00 
						 
				 
			
				
					
						
							
							
								Love Hörnquist Åstrand 
							
						 
					 
					
						
						
							
						
						e172367898 
					 
					
						
						
							
							switch to utf8 encoding of all files  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2008-09-13 08:53:55 +00:00 
						 
				 
			
				
					
						
							
							
								Assar Westerlund 
							
						 
					 
					
						
						
							
						
						3ae0642b6f 
					 
					
						
						
							
							(*): handle krb5_init_context failure consistently  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9441 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						2000-12-31 08:01:16 +00:00 
						 
				 
			
				
					
						
							
							
								Johan Danielsson 
							
						 
					 
					
						
						
							
						
						c5b916ca6f 
					 
					
						
						
							
							remove advertising clause  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1999-12-02 17:05:13 +00:00 
						 
				 
			
				
					
						
							
							
								Johan Danielsson 
							
						 
					 
					
						
						
							
						
						eda0d93e0a 
					 
					
						
						
							
							(kadm5_s_init_with_context): actually use some passed values  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7327 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1999-11-09 17:53:44 +00:00 
						 
				 
			
				
					
						
							
							
								Johan Danielsson 
							
						 
					 
					
						
						
							
						
						fdce59c712 
					 
					
						
						
							
							hdb_set_master_key -> hdb_set_master_keyfile  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5392 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1999-02-20 15:07:52 +00:00 
						 
				 
			
				
					
						
							
							
								Johan Danielsson 
							
						 
					 
					
						
						
							
						
						f9deced68f 
					 
					
						
						
							
							implement init_with_{skey,creds}*  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4906 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1998-05-23 02:56:05 +00:00 
						 
				 
			
				
					
						
							
							
								Assar Westerlund 
							
						 
					 
					
						
						
							
						
						a50834be62 
					 
					
						
						
							
							(kadm5_s_init_with_password_ctx): initialize log_context.socket_name' and log_context.socket_fd'  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4340 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1998-01-21 05:20:44 +00:00 
						 
				 
			
				
					
						
							
							
								Assar Westerlund 
							
						 
					 
					
						
						
							
						
						bcfb2ee002 
					 
					
						
						
							
							(kadm5_s_init_with_password_ctx): initialize log_context  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4313 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1998-01-20 22:06:17 +00:00 
						 
				 
			
				
					
						
							
							
								Johan Danielsson 
							
						 
					 
					
						
						
							
						
						1e9953fa65 
					 
					
						
						
							
							Initialize acl.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3779 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1997-11-05 23:22:37 +00:00 
						 
				 
			
				
					
						
							
							
								Johan Danielsson 
							
						 
					 
					
						
						
							
						
						e314482b9b 
					 
					
						
						
							
							Add kadm5_s_init_with_password_ctx. Use master key.  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3723 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1997-11-01 00:40:04 +00:00 
						 
				 
			
				
					
						
							
							
								Johan Danielsson 
							
						 
					 
					
						
						
							
						
						68d77a285f 
					 
					
						
						
							
							Beginning of a kadm5-library  
						
						... 
						
						
						
						git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3662 ec53bebd-3082-4978-b11e-865c3cabbd6b 
						
						
					 
					
						1997-10-25 06:19:27 +00:00