Kurt Mosiejczuk <kurt-open...@se.rit.edu> writes: > While trying out ypldap (using ypldap -dv) I got a bit confused at one point > because I just saw "flattening trees" and nothing else. My LDAP source does > have a *lot* of users, so thought maybe it was crunching for a bit. Nope. > My config was wrong and ypldap got nothing. > > This diff just adds a couple extra debugging lines having ypldap announce > when it it done pushing users and done pushing groups. Just to make it > obvious when it's done. It calls out everything it's doing until then, > so I think this makes sense.
Makes sense to me too. Committed. > --Kurt > > Index: entries.c > =================================================================== > RCS file: /cvs/src/usr.sbin/ypldap/entries.c,v > retrieving revision 1.3 > diff -u -p -u -p -r1.3 entries.c > --- entries.c 16 Jan 2015 06:40:22 -0000 1.3 > +++ entries.c 11 Jul 2017 21:23:47 -0000 > @@ -90,6 +90,7 @@ flatten_entries(struct env *env) > free(tmp); > } > env->sc_user_lines = linep; > + log_debug("done pushing users"); > > wrlen = env->sc_group_line_len; > if ((linep = calloc(1, env->sc_group_line_len + 1)) == NULL) { > @@ -115,6 +116,7 @@ flatten_entries(struct env *env) > wrlen -= len; > } > env->sc_group_lines = linep; > + log_debug("done pushing groups"); > } > > int > -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE