Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
L
Liman MYS - Çekirdek
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
liman
Liman MYS - Çekirdek
Commits
6022f381
Kaydet (Commit)
6022f381
authored
Ock 17, 2019
tarafından
mertcelen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Server Update bug fixed.
üst
7855f7fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
OneController.php
app/Http/Controllers/Server/OneController.php
+3
-2
Server.php
app/Http/Middleware/Server.php
+1
-0
functions.php
resources/views/extensions/kullanıcılar/functions.php
+13
-13
No files found.
app/Http/Controllers/Server/OneController.php
Dosyayı görüntüle @
6022f381
...
...
@@ -220,13 +220,14 @@ class OneController extends Controller
public
function
update
()
{
$server
=
\App\Server
::
where
(
'_id'
,
request
(
'server_id'
))
->
first
();
Notification
::
new
(
__
(
"Server Adı Güncellemesi"
),
"notify"
,
__
(
":old isimli sunucu adı :new olarak değiştirildi."
,[
"old"
=>
request
(
'server'
)
->
name
,
"new"
=>
request
(
'name'
)])
__
(
":old isimli sunucu adı :new olarak değiştirildi."
,[
"old"
=>
$server
->
name
,
"new"
=>
request
(
'name'
)])
);
$output
=
Server
::
where
(
'_id'
,
request
(
'server_id'
))
->
update
([
$output
=
$server
->
update
([
"name"
=>
request
(
'name'
),
"control_port"
=>
request
(
'control_port'
),
"city"
=>
request
(
'city'
)
...
...
app/Http/Middleware/Server.php
Dosyayı görüntüle @
6022f381
...
...
@@ -30,6 +30,7 @@ class Server
return
respond
(
"Sunucuyla bağlantı kurulamadı."
,
503
);
}
// Check if server is serverless, which means no validation required.
if
(
$server
->
serverless
){
return
$next
(
$request
);
}
...
...
resources/views/extensions/kullanıcılar/functions.php
Dosyayı görüntüle @
6022f381
...
...
@@ -43,19 +43,18 @@ function addUser(){
$user
[
"givenName"
]
=
request
(
"firstname"
);
$user
[
"sn"
]
=
request
(
"surname"
);
$user
[
"displayName"
]
=
request
(
"fullname"
);
$user
[
"sAMAccountName"
]
=
request
(
"username"
);
$user
[
"password"
]
=
request
(
"password"
);
if
(
request
()
->
exists
(
'forcechangepass'
)){
$user
[
"pwdLastSet"
]
=
intval
(
11644473600.0
+
time
())
*
10000000
;
}
$user
[
"userAccountControl"
]
=
(
request
()
->
exists
(
'neverexpired'
))
?
"512"
:
"66048"
;
if
(
request
()
->
exists
(
'lockaccount'
)){
$user
[
"lockoutTime"
]
=
0
;
}
$user
[
"objectclass"
]
=
"posixAccount"
;
if
(
request
()
->
exists
(
'cantchangepass'
)){
$user
[
"msDS-SupportedEncryptionTypes"
]
=
0
;
}
$user
[
"samAccountName"
]
=
request
(
"username"
);
// if(request()->exists('forcechangepass')){
// $user["pwdLastSet"] = intval(11644473600.0 + time()) * 10000000;
// }
// $user["userAccountControl"] = (request()->exists('neverexpired')) ? "512" : "66048";
// if(request()->exists('lockaccount')){
// $user["lockoutTime"] = 0;
// }
// $user["objectclass"] = "posixAccount";
// if(request()->exists('cantchangepass')){
// $user["msDS-SupportedEncryptionTypes"] = 0;
// }
$ldap_connection
=
_init
();
ldap_add
(
$ldap_connection
,
request
(
'tree_path'
),
$user
);
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment