On 1/22/2015 6:05 PM, Sumit Basu wrote:
Hello Fabrice,

There is simply no requests going from the packetfence server to my LDAP servers. However i am able to do ldapsearch, the output is below:-

[root@pf logs]# ldapsearch -x uid=sumit.basu
# extended LDIF
#
# LDAPv3
# base <ou=People,dc=sinp> (default) with scope subtree
# filter: uid=sumit.basu
# requesting: ALL
#

# sumit.basu, cs, People, sinp
dn: uid=sumit.basu,ou=cs,ou=People,dc=sinp
uid: sumit.basu
cn: sumit.basu
sn: sumit.basu
mail: [email protected]
mailMessageStore: /data-store/cs/sumit.basu/Maildir/
uidNumber: 6187
gidNumber: 6000
homeDirectory: /data-store/cs/sumit.basu
shadowInactive: 7
shadowMin: 7
shadowWarning: 7
objectClass: qmailUser
objectClass: posixAccount
objectClass: shadowAccount
objectClass: person
objectClass: organizationalPerson
shadowMax: 60
vacationActive: FALSE
vacationInfo:: SGksDQogDQpJIGFtIG9uIGxlYXZlIHdpdGggbGltaXRlZCBjb25uZWN0aXZpdHk
 gdG8gRS1tYWlsLiBJbmNvbnZlbmllbmNlIGlzIHJlZ3JldHRlZC4NCg0KU3VtaXQ=
mailForwardingAddress:
ufsStatus: active
shadowLastChange: 16403
title: SA-C, Computaional Science Division. Ph-2254
userName: Sumit Basu
postalAddress: 1/AF Bidhannagar
loginShell: /bin/bash
accountStatus: enabled

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1
[root@pf logs]#


Regards
Sumit Basu
On 1/19/2015 6:50 PM, Fabrice DURAND wrote:
Hello,

ok so let´s try to debug.
First take a wireshark trace of the ldap traffic between packetfence and
your ldap server.
Check if the request are ok (ldapsearch uid=sumit.basu) and if the ldap
server return search ok and return values.

Regards
Fabrice

Hello Fabrice,
No luck tried both with value "equals" as well as "matches regexp".
The same error comes  "Email *****.****@****.**.** not allowed to
sponsor guest access". Strangely when this happens i can see no logs
corresponding to the failure.

Sumit


[SINP_LDAP rule SINP_LDAP_USERS]
description=
match=all
action0=mark_as_sponsor=1
condition0=uid,equals,sumit.basu
#condition0=uid,matches regexp,sumit.basu




On 1/16/2015 9:35 PM, Fabrice DURAND wrote:
Hi,

change in the rule SINP_LDAP_USERS mail to username and change the value
to match.
And make a try.

Regards
Fabrice

Le 2015-01-16 01:05, Sumit Basu a écrit :
Hi,

I have been trying to configure sponsored guest access on Packetfence
4.5.1 without success. I have added an internal user source using my
LDAP server and added a condition whereby if mail equals my address of
our local-domain then the action would be to mark as sponsor. When
trying to "Register through a sponsor" i get the "Email
*****.****@****.**.** not allowed to sponsor guest access". Strangely
when this happens i can see no logs corresponding to the failure which
is unlike the "Register by Email/SMS" options.
I am not able to figure out the issue. The configuration is as below:

[SINP_LDAP]
description=LDAP Server
scope=sub
basedn=ou=People,dc=sinp
usernameattribute=uid
connection_timeout=5
encryption=none
port=389
type=LDAP
host=172.16.0.3

[SINP_LDAP rule SINP_LDAP_USERS]
description=
match=all
action0=mark_as_sponsor=1
condition0=mail,equals,****.****@****.**.**

Regards
Sumit Basu
CS, SINP
Kolkata India




------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users



------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users



------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet


_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to