Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Benjamin Graillot
scripts
Commits
29d7bc0f
Commit
29d7bc0f
authored
Nov 07, 2013
by
Daniel STAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send_message: fix user
fix this fucking user.
parent
a0950929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sip/send_sms.py
sip/send_sms.py
+2
-0
No files found.
sip/send_sms.py
View file @
29d7bc0f
...
@@ -32,6 +32,8 @@ if __name__ == '__main__':
...
@@ -32,6 +32,8 @@ if __name__ == '__main__':
args
=
parser
.
parse_args
(
sys
.
argv
[
1
:])
args
=
parser
.
parse_args
(
sys
.
argv
[
1
:])
login
=
getpass
.
getuser
()
login
=
getpass
.
getuser
()
if
login
==
'respbats'
:
login
=
os
.
getenv
(
'SUDO_USER'
)
ldap
=
lc_ldap
.
shortcuts
.
lc_ldap_readonly
()
ldap
=
lc_ldap
.
shortcuts
.
lc_ldap_readonly
()
adh
=
ldap
.
search
(
u
'uid=%s'
%
login
)[
0
]
adh
=
ldap
.
search
(
u
'uid=%s'
%
login
)[
0
]
...
...
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