Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CERN Ldap API
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal
modules
CERN Ldap API
Commits
cf286665
Commit
cf286665
authored
5 years ago
by
Eduardo Alvarez Fernandez
Browse files
Options
Downloads
Patches
Plain Diff
Add services yml file and service class
parent
d5120e7d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cern_ldap_api.services.yml
+3
-0
3 additions, 0 deletions
cern_ldap_api.services.yml
src/CERNLdapService.php
+20
-1
20 additions, 1 deletion
src/CERNLdapService.php
with
23 additions
and
1 deletion
cern_ldap_api.services.yml
0 → 100644
+
3
−
0
View file @
cf286665
services
:
cern_lda_api.cernldap
:
class
:
Drupal\cern_ldap_api\CERNLdapService
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/CERNLdapService.php
+
20
−
1
View file @
cf286665
...
@@ -2,4 +2,23 @@
...
@@ -2,4 +2,23 @@
namespace
Drupal\cern_ldap_api
;
namespace
Drupal\cern_ldap_api
;
Class
CERNLdapService
/**
\ No newline at end of file
* CERNLdapService is a service to contact CERN Ldap service
*/
Class
CERNLdapService
{
private
$server_host
=
"xldap.cern.ch"
;
/**
* Resolves emails for an e-group
* @param string $egroup
* The egroup name in simple formar, ex: drupal-admins
* @param bool $recursive
* Flag to enable/disable recursive lookup of inner e-groups
*/
public
function
resolveEgroup
(
$egroup
,
$recursive
)
{
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment