ok and is there a way to load the ssh keys and mail adresses from ldap too?
Beiträge von nixmomo
-
-
Yes i can manage the access for User and Groups and you point me at the right way.
In that case the Webdav Plugin created a local group called webdav-users. This group was local only and not written to ldap. I created the group in my ldap too. First time i dont saw the local and dont saw the LDAP group cause both groups called webdav-users. The issue was the guid. Local it was by 301 and in my ldap 1115 ... i changed the gid local to my ldap guid and it worked.
In next step i have set a ldap user the ldap group "webdav-users" via omv without any issues.
i think i have to look deeper in the plugin cause you can see ldap groups with guid higher then 1000 only .... My ldap groups are default synced with the standard guid from unix.
-
Hmm also das "Aufwecken" geht nur per WoL Signal. Ich bezweifle dass das ein Plex client senden kann. Kann dein Server WoL? Steht der Server bei dir daheim? Rechenzentren können solche Signale zum Beispiel per API an den Server schicken, das könnte man dann mittels Browser auslösen.
Wenn der Server bei dir daheim steht wirds schon schwierig. DynDNS vorhanden und auch irgendwo ein Client der PHP kann? Einige Router unterstützen sowas ja. Da könntest du ihn mittels kleinem Script aufwecken.
PHP
Alles anzeigen<?php function wakeup ($mac_addr, $broadcast) { if (!$fp = fsockopen('udp://' . $broadcast, 2304, $errno, $errstr, 2)) return false; $mac_hex = preg_replace('=[^a-f0-9]=i', '', $mac_addr); $mac_bin = pack('H12', $mac_hex); $data = str_repeat("\xFF", 6) . str_repeat($mac_bin, 16); fputs($fp, $data); fclose($fp); return true; } ?>
Ist allerdings ungetestet. Den Schnippsel fand ich übrigens nach 2 Minuten suchen hier:
https://www.php.de/forum/weben…n-lan-mit-php-gel%C3%B6stHier wäre noch eins
PHP
Alles anzeigenfunction wol($broadcast, $mac) { $mac_array = split(':', $mac); $hwaddr = ''; foreach($mac_array AS $octet) { $hwaddr .= chr(hexdec($octet)); } // Create Magic Packet $packet = ''; for ($i = 1; $i <= 6; $i++) { $packet .= chr(255); } for ($i = 1; $i <= 16; $i++) { $packet .= $hwaddr; } $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); if ($sock) { $options = socket_set_option($sock, 1, 6, true); if ($options >=0) { $e = socket_sendto($sock, $packet, strlen($packet), 0, $broadcast, 7); socket_close($sock); } } }
Wenn das von außen erreichbar sein soll, solltest du das natürlich auch sichern.
Alternativ könntest du fürs Handy nach Wake on Lan Apps suchen die auch mit DynDNS funktionieren wenn es unbedingt von außerhalb sein soll.
Mit den Infos kann man dir vermutlich nicht mehr helfen.
-
Moin, welche genau?
Das mit den Gruppen ist ja schon geklärt. Die kann man nur via OMV setzen wenn die LDAP Gruppe und die lokale Gruppe die gleiche GUID haben. Wenns eine Gruppe "webdav-user" lokal und im LDAP gibt, wird keine angezeigt also muss manuell die GUID angepasst werden. Dann passts und die User + Gruppe wird geladen und funktioniert auch.Das was mir jetzt noch fehlt ist die Möglichkeit die SSH Keys und die Mailadressen aus dem LDAP zu laden. Bin ziemlich erstaunt, dass das nicht mit drin ist.
-
And one more question, is it possible to sync more fields? Like Mail and SSH Keys? At Moment the username, pw and shell are synced only
-
hmm a bit confusing cause if i add a user via omv, he is added in ldap too and in this case i can change the groups for this user in omv and the groups would be written to ldap too
-
Hi and thanks, yes i see all users and groups in my omv.... getentgroups brings all too but i cant add a group to a user which is locatet in the ldap
My LDAP Server is a openldap
This is the curios part... why does he try to add it in passwd file... theyre no ldap users inside
-
Whats your conf?
do you import the samba shema in your ldap server? did you smbpasswd -W to set the bind account passwort? -
Hi,
i have omv 3 installed and i have a stupid question...
how can i set a omv group for a ldap user?
Ldap Plugin is installed and works fine.
I get always this errorCodeFehler #0: exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; usermod --gid 'users' --shell '/bin/dash' --comment 'userfullname' --groups 'admins,webdav-users' 'username' 2>&1' with exit code '6': usermod: user 'username' does not exist in /etc/passwd' in /usr/share/php/openmediavault/system/process.inc:175 Stack trace: #0 /usr/share/openmediavault/engined/rpc/usermgmt.inc(559): OMV\System\Process->execute() #1 [internal function]: OMVRpcServiceUserMgmt->setUser(Array, Array) #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setUser', Array, Array) #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('UserMgmt', 'setUser', Array, Array, 1) #5 {main}
So how can i fix this? do i need write all LDAP users manual into passwd file?Thanks a lot and sry for my english
Kind Regards