|
Lines 282-296
static int univention_samaccountname_ldap_check_add(struct ldb_module *module, s
Link Here
|
| 282 |
if( ! WIFEXITED(status) ) { |
282 |
if( ! WIFEXITED(status) ) { |
| 283 |
ldb_debug(ldb, LDB_DEBUG_ERROR, "%s: Cannot determine return status of ucs-school-create_windows_computer: %s (%d)\n", ldb_module_get_name(module), strerror(errno_wait), errno_wait); |
283 |
ldb_debug(ldb, LDB_DEBUG_ERROR, "%s: Cannot determine return status of ucs-school-create_windows_computer: %s (%d)\n", ldb_module_get_name(module), strerror(errno_wait), errno_wait); |
| 284 |
return LDB_ERR_UNWILLING_TO_PERFORM; |
284 |
return LDB_ERR_UNWILLING_TO_PERFORM; |
| 285 |
} else if( WEXITSTATUS(status) == 1 ) { |
|
|
| 286 |
ldb_debug(ldb, LDB_DEBUG_ERROR, "%s: LDB_ERR_ENTRY_ALREADY_EXISTS\n", ldb_module_get_name(module)); |
| 287 |
return LDB_ERR_ENTRY_ALREADY_EXISTS; |
| 288 |
} else if( WEXITSTATUS(status) == 2 ) { |
285 |
} else if( WEXITSTATUS(status) == 2 ) { |
| 289 |
ldb_debug(ldb, LDB_DEBUG_ERROR, ("%s: ldb_add of machine object is disabled\n"), ldb_module_get_name(module)); |
286 |
ldb_debug(ldb, LDB_DEBUG_ERROR, ("%s: ldb_add of machine object is disabled\n"), ldb_module_get_name(module)); |
| 290 |
return LDB_ERR_UNWILLING_TO_PERFORM; |
287 |
return LDB_ERR_UNWILLING_TO_PERFORM; |
| 291 |
} else if( WEXITSTATUS(status) == 3 ) { |
288 |
} else if( WEXITSTATUS(status) == 3 ) { |
| 292 |
ldb_debug(ldb, LDB_DEBUG_TRACE, ("%s: ldb_add of machine object ignored in dummy mode\n"), ldb_module_get_name(module)); |
289 |
ldb_debug(ldb, LDB_DEBUG_TRACE, ("%s: ldb_add of machine object ignored in dummy mode\n"), ldb_module_get_name(module)); |
| 293 |
return LDB_SUCCESS; |
290 |
return LDB_SUCCESS; |
|
|
291 |
} else if( WEXITSTATUS(status) == 4 ) { |
| 292 |
ldb_debug(ldb, LDB_DEBUG_ERROR, "%s: LDB_ERR_ENTRY_ALREADY_EXISTS\n", ldb_module_get_name(module)); |
| 293 |
return LDB_ERR_ENTRY_ALREADY_EXISTS; |
| 294 |
} else if( WEXITSTATUS(status) ) { |
294 |
} else if( WEXITSTATUS(status) ) { |
| 295 |
ldb_debug(ldb, LDB_DEBUG_ERROR, ("%s: unknown error code from ucs-school-create_windows_computer: %d\n"), ldb_module_get_name(module), WEXITSTATUS(status)); |
295 |
ldb_debug(ldb, LDB_DEBUG_ERROR, ("%s: unknown error code from ucs-school-create_windows_computer: %d\n"), ldb_module_get_name(module), WEXITSTATUS(status)); |
| 296 |
return LDB_ERR_UNWILLING_TO_PERFORM; |
296 |
return LDB_ERR_UNWILLING_TO_PERFORM; |