Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LDAP informations to a new user after the registration #282

Merged
merged 8 commits into from
Jan 12, 2015

Conversation

lzammit
Copy link
Contributor

@lzammit lzammit commented Nov 14, 2014

No description provided.


my $msg = $ldap->bind ( $username,
password => $password,
version => 3);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use :
my ($connection, $LDAPServer, $LDAPServerPort ) = $self->_connect();
and use $connection instead of $ldap after in your code.

@extrafu
Copy link
Member

extrafu commented Nov 15, 2014

NEWS entry!

password => $password,
version => 3);
my $searchresult = $ldap->search (
base => $userdn,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$userdn -> $source->{'basedn'}

@julsemaan
Copy link
Collaborator

You need to rebase your branch before we can merge this.

@@ -24,6 +24,7 @@ New Features
* Add WiFi autoconfiguration for Windows through packetfence-windows-agent
* Added a "Chained" authentication source where a user must first login in order to register by SMS,Email or SponsorEmail
* Added call to the web API from the vlan filters
* Added a way to retrieve user informatione after the first registration.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*zi informatione

my $logger = Log::Log4perl::get_logger('pf::lookup::person');
my $source = pf::authentication::getAuthenticationSource($source_id);
if (!$source) {
$logger->info("Unable to locate PID '$pid'");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're searching for a source but throwing an error for an unfound PID

julsemaan added a commit that referenced this pull request Jan 12, 2015
Add LDAP informations to a new user after the registration
@julsemaan julsemaan merged commit 5f6c799 into inverse-inc:devel Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants