Univention Bugzilla – Attachment 8286 Details for
Bug 42124
failed to create DC Backup: Object exists: (mac)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug #42124 join: Search for IP and MAC too
file_42124.txt (text/plain), 1.17 KB, created by
Philipp Hahn
on 2016-12-05 15:02:32 CET
(
hide
)
Description:
Bug #42124 join: Search for IP and MAC too
Filename:
MIME Type:
Creator:
Philipp Hahn
Created:
2016-12-05 15:02:32 CET
Size:
1.17 KB
patch
obsolete
>Author: Philipp Hahn <hahn@univention.de> >Date: Mon Dec 5 13:38:00 2016 +0100 > > Bug #42124 join: Search for IP and MAC too > > When creating a new computer object, search for the IP and MAC address > too. This solves the case where the computer object is pre-created, but > uses a different name than the computer currently uses. > >diff --git a/management/univention-join/univention-server-join b/management/univention-join/univention-server-join >index 2186418..34afca9 100755 >--- a/management/univention-join/univention-server-join >+++ b/management/univention-join/univention-server-join >@@ -211,7 +211,10 @@ create_entry () { > local group="$5" > log 0 "Join $desc" > >- old_dn="$(univention-directory-manager "$module" list --filter name="$NEWHOSTNAME" "${ADMINOPTIONS[@]}" | DN1)" >+ query="(name=$NEWNAME)" >+ [ -n "${MAC:-}" ] && query+="(mac=$MAC)" >+ [ -n "${IP:-}" ] && query+="(ip=$IP)" >+ old_dn="$(univention-directory-manager computers/computer list --filter "(|${query})" "${ADMINOPTIONS[@]}" | DN1)" > if [ $? -gt 0 ]; then > log 1 "E: failed search $desc [$old_dn]" > exit 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42124
: 8286