summaryrefslogtreecommitdiff
path: root/nslcd/protocol.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-07-24 13:38:56 +0000
committerArthur de Jong <arthur@arthurdejong.org>2007-07-24 13:38:56 +0000
commitd6f0e2fbfde1a928580cbfdd6845facf2ff1aea2 (patch)
tree2f6fbb9914f283a068672551254eacc9ade34f7b /nslcd/protocol.c
parentfaee906ac541a533b61d1b51aad34fde4f3f8509 (diff)
switch to a new interface for doing attribute mapping, splitting the attribute mapping stuff into a separate file
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@326 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/protocol.c')
-rw-r--r--nslcd/protocol.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nslcd/protocol.c b/nslcd/protocol.c
index 3c58b0a..01a872c 100644
--- a/nslcd/protocol.c
+++ b/nslcd/protocol.c
@@ -52,6 +52,7 @@
#include "util.h"
#include "common.h"
#include "log.h"
+#include "attmap.h"
static enum nss_status _nss_ldap_parse_proto (LDAPMessage *e,
struct ldap_state UNUSED(*pvt),
@@ -63,13 +64,13 @@ static enum nss_status _nss_ldap_parse_proto (LDAPMessage *e,
enum nss_status stat;
stat =
- _nss_ldap_getrdnvalue (e, ATM (LM_PROTOCOLS, cn), &proto->p_name,
+ _nss_ldap_getrdnvalue (e, attmap_protocol_cn, &proto->p_name,
&buffer, &buflen);
if (stat != NSS_STATUS_SUCCESS)
return stat;
stat =
- _nss_ldap_assign_attrval (e, AT (ipProtocolNumber), &number, &buffer,
+ _nss_ldap_assign_attrval (e, attmap_protocol_ipProtocolNumber, &number, &buffer,
&buflen);
if (stat != NSS_STATUS_SUCCESS)
return stat;
@@ -77,7 +78,7 @@ static enum nss_status _nss_ldap_parse_proto (LDAPMessage *e,
proto->p_proto = atoi (number);
stat =
- _nss_ldap_assign_attrvals (e, ATM (LM_PROTOCOLS, cn), proto->p_name,
+ _nss_ldap_assign_attrvals (e, attmap_protocol_cn, proto->p_name,
&proto->p_aliases, &buffer, &buflen, NULL);
if (stat != NSS_STATUS_SUCCESS)
return stat;