284
296
* returns allocated storage in name, caller must free it
285
297
* returns 0 on success, -1 on error or not found
290
308
char filter[256]; /* this should really be enough. we dont want to malloc everything! */
291
309
char *attributes[] = { NULL, NULL};
294
315
len = snprintf( filter, 256, "%s=%s", ldap_uuid_attr, uuidstr);
295
316
if (len >= 256 || len == -1) {